Skip to content
Advertisement

Creating A GUI for Editing A Config File Using Python

So, I have a .toml config file and its something like this:

[APU]
apu = "any"                                         # Audio system. Use: [any, nop, sdl, xaudio2]
[CPU]
break_condition_gpr = -1                            # GPR compared to
break_condition_op = "eq"                           # comparison operator

I know how to pars the toml file (using it’s module)

I want to make a program using python, that let’s other users choose for example the apu mentioned above (between any,nop,sdl,…),meaning the program suggests the options (any,nop,sdl…) and the user can choose whatever option they want.

the problem is that I don’t know where to start!(not coding wise, I don’t even know that if there is a module that would help me or even other things mayby? (I’m Confused and don’t know where to search for a tutorial) I have no idea what to do next.

Advertisement

Answer

Tkinter is python’s standard GUI framework however lacks a lot of features and is really only useful for the most basic of GUI’s.

If you’re looking for something a bit more powerful I would suggest having a look at Kivy, it’s open-source and has good documentation, it is primarily intended for mobile development but is perfectly well suited for desktop apps too.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement