pyglet also doesnt have any UI like buttons as well (i think). Pyglet is like pygame. I feel like the community is smaller in pyglet than in pygame.
Kivy is mainly for mobile devices and actually has its own language. Most of the time you are not typing out python syntax but kivy syntax. Here is a small example of an input box and label in kivy
check out @[Mekire] github
https://github.com/Mekire
It has a lot of basic examples for learning and as well as some repos of good coded flexible UI tools off the bat.
Kivy is mainly for mobile devices and actually has its own language. Most of the time you are not typing out python syntax but kivy syntax. Here is a small example of an input box and label in kivy
<ScatterTextWidget>: orientation: 'vertical' TextInput: id: my_textinput font_size: 150 size_hint_y: None height: 200 text: 'default' FloatLayout: Scatter: Label: text: my_textinput.text font_size: 150while here is the python script that runs it
from kivy.app import App from kivy.uix.scatter import Scatter from kivy.uix.label import Label from kivy.uix.floatlayout import FloatLayout from kivy.uix.textinput import TextInput from kivy.uix.boxlayout import BoxLayout class ScatterTextWidget(BoxLayout): pass class MainApp(App): def build(self): return ScatterTextWidget() if __name__ == "__main__": MainApp().run()As you can see the meat of the program is in the kivy syntax
Quote:So is the basic idea that I should mostly do it myself, using other's codes for examples?Yeah its kinda stupid that they havent implemented a basic UI system. You do get use to it. Once you find good code, and understand it, you dont have to change it much....if ever. I have always used the same button class for years in all my games without changing the button code because its flexible to handle multiple situations. You just have to keep uploading it to each of your games instead of expecting it to be in pygame.
check out @[Mekire] github
https://github.com/Mekire
It has a lot of basic examples for learning and as well as some repos of good coded flexible UI tools off the bat.
Recommended Tutorials: