An imgui style Graphical User Interface library for python using PyQt5 as its backend.
Mainly used by Datapack Editor.
A simple Hello World implementation. Full source code is here
class MainWindow(PythonGUIMainWindow):
def OnGUI(self, gui: PythonGUI):
with gui.hLayout(), gui.hCentered(), gui.vLayout():
name = gui.textField(None, label="name:")
if gui.button(f"Greet '{name}'"):
gui.showInformationDialog(f"Hello {name}!", "How are you?")
A simple Calculator app with memory and a history view which can be enabled or disabled. Full source code is here
An advanced creator & editor for Minecraft Datapacks. Full source code is here: Datapack-Editor