Revision [32879]
This is an old revision of gtkdialogDocTips made by zigbert on 2020-07-28 05:02:35.
GtkDialog - Tips and Tricks
This documentation is based on the thread 'Tips and Tricks' by zigbert Sigmund Berglund (zigbert) at the old Puppylinux forum.The info is based on input from many people. Please continue to share your knowledge.
INDEX
1. gtkdialogDocTips1 Syntax - How to use variables in the code.2. gtkdialogDocTips2 Let the script return data - Choose a proper coding structure.
3. gtkdialogDocTips3 Let external code act on your gtkdialog gui
4. gtkdialogDocTips4 The benefits of a config file
4.1 Set default status of Radiobuttons, Comboboxes...
4.2 How to store window size/placement
5. gtkdialogDocTips5 Speed issues - Let your turtle run6. gtkdialogDocTips6 Extended use of widgets - Undocumented features
7. gtkdialogDocTips7 Advanced Syntax - make your code readable
7.1 Comments in your code.
7.2 Include code if...
8. gtkdialogDocTips8 Text managing
8.3 Scroll text
8.5 Set font
8.6 Hyperlink
9. Tips and tricks- How to change the gui without restarting the app
- Control the icon/label of menuitems.
- Understand the alignment.
- Window header icon.
- Refresh image
- Drag'n drop.
- Hotkeys.
- Set a fixed size of a progressbar.settings
- Define unique gtk-theme.
- Override window manager - skip taskbar, sticky, layer, border
- Let entry accept (some) numbers only.
- MIME.
- Checkbox with image
- Use a splash screen.
- Press 'Enter' instead of clicking the 'Ok' button.
Tips and tricks - Links