{"id":15015699,"url":"https://github.com/yousuf60/simplekivy","last_synced_at":"2026-02-27T15:02:58.266Z","repository":{"id":178676727,"uuid":"658008035","full_name":"yousuf60/SimpleKivy","owner":"yousuf60","description":"the idea is inspired by PySimpleGui , to quickly create simple kivy apps.","archived":false,"fork":false,"pushed_at":"2024-01-30T17:00:53.000Z","size":453,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T09:52:11.348Z","etag":null,"topics":["kivy","library","python","python3","simplekivy","ui"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yousuf60.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":"2023-06-24T13:33:10.000Z","updated_at":"2023-11-28T14:33:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"537ea946-b616-44a2-bcbc-84166d3db54c","html_url":"https://github.com/yousuf60/SimpleKivy","commit_stats":{"total_commits":77,"total_committers":2,"mean_commits":38.5,"dds":"0.051948051948051965","last_synced_commit":"fd8ce5555f169e3b7354764339d6559455184d2e"},"previous_names":["yousuf60/simplekivy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousuf60%2FSimpleKivy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousuf60%2FSimpleKivy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousuf60%2FSimpleKivy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousuf60%2FSimpleKivy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yousuf60","download_url":"https://codeload.github.com/yousuf60/SimpleKivy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248550635,"owners_count":21122932,"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":["kivy","library","python","python3","simplekivy","ui"],"created_at":"2024-09-24T19:47:48.315Z","updated_at":"2026-02-27T15:02:58.187Z","avatar_url":"https://github.com/yousuf60.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleKivy\n\n```bash\npip install simplekivy\n```\n\n### Do not forget to install:\n-------\n* [kivy](\"https://pypi.org/project/Kivy\") \n* [kivymd](\"https://github.com/kivymd/KivyMD\") `master branch is recommended`\n\n\nsimplekivy is built with kivy to write quickly simple codes\n\nyou can write kvlang and creat your own classes and widgets as kivy is flexible\n\nthe widgets are added only once via simpleKivyObject + [\n\n#kv_widgets\n\n]\n\nand you can build simplekivy way using `s.build`\n\n### Examples to test:\n-----\n\n```python\nfrom simplekivy import SimpleKivy\ns = SimpleKivy(title=\"test app\")\ndp = s.metrics.dp\n\ndef pressed(instance):\n    if text_input.text:\n        label.text = text_input.text\n\nbackground = \"\"\"\nBoxLayout:\n    canvas:\n        Color:\n            rgba: 0, 0, .9, .7\n        Rectangle:\n            pos: self.pos\n            size: self.size\n\n\"\"\"\n\ntext_input =  s.STextInput(hint_text=\"type\", size_hint=(.5, None), height=dp(60), pos_hint={\"center_x\":.5})\nbtn = s.SButton(text = \"click\", size_hint=(.4, .2), pos_hint={\"center_x\":.5, \"center_y\":.5}, on_press=pressed)\nlabel =  s.SLabel(text = \"type\")\n\n# you don't really need to build here and can just pass the list .. \n# but iam showing you how to get objets using s.build\n# so you may need it somewhere else\nfront = s.build([{\"orientation\":\"vertical\"},\n                text_input,\n                (btn,),\n                label            \n])\n\ns + [(background,\nfront\n)\n]\n\n```\n\n```python\n\nfrom simplekivy import SimpleKivy\ns = SimpleKivy(title=\"test app\")\nscreen_manager = s.ScreenManager()\n\nclass ScreenI(s.Screen):\n    def left(self):\n        print(\"------\", self, self.name)\n        screen_manager.transition.direction = \"right\"\n        screen_manager.current = screen_manager.previous()\n\n    def right(self):\n        print(\"------\", self, self.name)\n        screen_manager.transition.direction = \"left\"\n        screen_manager.current = screen_manager.next()\n\nmanager = {screen_manager: None}\nscr = {}\n\nfor i in range(4):\n    left = s.SButton(text=\"left\")\n    right = s.SButton(text=\"right\")\n    screen = ScreenI(name=str(i))\n    left.on_press = screen.left\n    right.on_press = screen.right\n    scr[screen] = [{\"orientation\":\"vertical\"},s.SLabel(text=str(i)),[ left, right]]\n\nmanager[screen_manager] = scr\ns + [\n    manager\n]\n\n```\n### Hints\n------\n\n- list =\u003e BoxLayout\n- tuple =\u003e FloatLayout\n- set `make_app` to `False` if you do not want to run the kivy App \n```python\ns = SimpleKivy(make_app=False)\n```\n- to reach the main App object do `s.myapp`\n- you can pass to `s.build` a `list, tuple, dict, set and kivy lang string`\n- the more you understand kivy, the more you enjoy its flexibility\n\n----\n\n\n\u003cimg src=\"https://github.com/yousuf60/SimpleKivy/assets/64571068/5905a746-8278-4471-b1e3-d85b7eb5eec6\" width=\"400\"\u003e\n\n\n\u003cimg src=\"https://github.com/yousuf60/SimpleKivy/assets/64571068/f2abb219-55c1-4e9e-a9e9-e46346d6176f\" width=\"400\"\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyousuf60%2Fsimplekivy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyousuf60%2Fsimplekivy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyousuf60%2Fsimplekivy/lists"}