{"id":19445716,"url":"https://github.com/kuritaro1122/pyxelbuttonmanager","last_synced_at":"2026-06-06T23:32:26.593Z","repository":{"id":170530475,"uuid":"450434328","full_name":"kuritaro1122/PyxelButtonManager","owner":"kuritaro1122","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-22T03:28:46.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-07T22:51:47.163Z","etag":null,"topics":["pyxel"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kuritaro1122.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-21T09:43:35.000Z","updated_at":"2022-04-08T06:22:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"515aad7a-7cdd-483c-869b-c1bb81736955","html_url":"https://github.com/kuritaro1122/PyxelButtonManager","commit_stats":null,"previous_names":["kuritaro1122/pyxelbuttonmanager"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuritaro1122%2FPyxelButtonManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuritaro1122%2FPyxelButtonManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuritaro1122%2FPyxelButtonManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuritaro1122%2FPyxelButtonManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kuritaro1122","download_url":"https://codeload.github.com/kuritaro1122/PyxelButtonManager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240630580,"owners_count":19832088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pyxel"],"created_at":"2024-11-10T16:11:34.501Z","updated_at":"2025-02-25T08:29:09.282Z","avatar_url":"https://github.com/kuritaro1122.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyxelButtonManager\n\n## Example\n\n```\nimport PyxelButton as pb\nclass APP:\n  def __init__(self):\n    pyxel.init(...)\n    pyxel.mouse(True)\n    \n    def function_a():\n      print(\"Pushed Button_A\")\n    button_a : pb.BaseButton = pb.TextButton(x=0,y=0,s=\"Button_A\",col=pyxel.COLOR_BLACK,func=lambda:function_a())\n    \n    def function_b():\n      print(\"Pushed Button_B\")\n    button_b : pb.BaseButton = pb.TextButton(x=0,y=10,s=\"Button_B\",col=pyxel.COLOR_BLACK,func=lambda:function_b())\n    \n    self.buttonManager = pb.ButtonManager(buttons=[[button_a,lambda:TRUE,[pyxel.SPACE], [button_b,lambda:TRUE,[]]]])\n    \n    pyxel.run(self.update, self.draw)\n    \n  def update(self):\n    ...\n    self.buttonManager.update()\n    \n  def draw(self):\n    ...\n    self.buttonManager.draw()\n    \nAPP()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuritaro1122%2Fpyxelbuttonmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuritaro1122%2Fpyxelbuttonmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuritaro1122%2Fpyxelbuttonmanager/lists"}