Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 2.2 KB

README.md

File metadata and controls

47 lines (32 loc) · 2.2 KB

Cat GUI

GitHub GitHub repo size Lines of code Hits

An imgui style Graphical User Interface library for python using PyQt5 as its backend.

Mainly used by Datapack Editor.

Examples

Hello World

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?")

HelloWorldExample_IMG

Calculator

A simple Calculator app with memory and a history view which can be enabled or disabled. Full source code is here

CalculatorExample_IMG

Datapack Editor

An advanced creator & editor for Minecraft Datapacks. Full source code is here: Datapack-Editor

DatapackEditorDialog_IMG