{"id":20697075,"url":"https://github.com/tsnsoft/wxpython_demo","last_synced_at":"2025-04-22T20:44:24.056Z","repository":{"id":119287274,"uuid":"311328414","full_name":"tsnsoft/wxPython_demo","owner":"tsnsoft","description":"Пример оконной программы на wxPython c wxWidgets и кодом формы от wxFormBuilder","archived":false,"fork":false,"pushed_at":"2020-11-09T12:43:58.000Z","size":37,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T18:41:32.299Z","etag":null,"topics":["demo","pyinstaller","python","wxformbuilder","wxpython","wxwidgets"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsnsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-11-09T12:16:54.000Z","updated_at":"2021-01-13T04:17:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"b27ab239-8222-43b5-9371-01c53d67a945","html_url":"https://github.com/tsnsoft/wxPython_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FwxPython_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FwxPython_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FwxPython_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FwxPython_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsnsoft","download_url":"https://codeload.github.com/tsnsoft/wxPython_demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250321736,"owners_count":21411632,"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":["demo","pyinstaller","python","wxformbuilder","wxpython","wxwidgets"],"created_at":"2024-11-17T00:16:34.330Z","updated_at":"2025-04-22T20:44:24.051Z","avatar_url":"https://github.com/tsnsoft.png","language":"Python","readme":"# wxPython_demo\nПример оконной программы на wxPython c wxWidgets и кодом формы от wxFormBuilder\n\n![srcreenshot](screenshot.png)\n\n```\n#!/usr/bin/env python3\n# coding=utf-8\n\nimport wx\nimport wx.xrc\n\nfrom MainFrameBase import MainFrameBase\n\n\nclass MainFrame(MainFrameBase):\n\n    def onClick1(self, event):\n        dlg = wx.MessageDialog(self, \"Hello!\", \"wxPython\", wx.OK)\n        dlg.ShowModal()\n        dlg.Destroy()\n\n    def onClick2(self, event):\n        wx.MessageDialog(self, \"Приветик!\", \"TSN\", wx.OK).ShowModal()\n\n    def onSum(self, event):\n        try:\n            a = float(self.m_textCtrl1.GetValue())\n            b = float(self.m_textCtrl2.GetValue())\n            c = a + b\n            self.m_staticText_Sum.SetLabelText(str(c))\n        except:\n            self.m_staticText_Sum.SetLabelText(\"не могу понять тебя!\")\n\n\ndef main():\n    app = wx.App(False)\n    frame = MainFrame(None)\n    frame.Show(True)\n    app.MainLoop()\n\n\nif __name__ == '__main__':\n    main()\n\n```\n\n## https://wxpython.org\n\nУстановка:\n```\npip3 install -U wxPython\n```\n\nили так:\n```\nsudo apt-get install python-wxgtk3.0\n```\n\n---\n### Как сделать портативную программу в виде одного исполняемого файла:\n```\npip3 install pyinstaller\npyinstaller --onefile --windowed start.py\n```\n---\n## wxFormBuilder: https://github.com/wxFormBuilder/wxFormBuilder\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsnsoft%2Fwxpython_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsnsoft%2Fwxpython_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsnsoft%2Fwxpython_demo/lists"}