I am using Quickly and Glade for the first time. I want to add certain widgets such as label and buttons on viewport via python code. Is it possible?
|
Yes, you can. If you haven't already loaded the glade file the load it with:
Replace "/path/to/file" with the path to the glade file. You can then get the container like the viewport:
Replace "nameOfViewport" with what you named it in glade. You can then add the widget using the view ports add() method:
Replace "nameOfWidget" with the name of the widget you want to add. Edit: Make sure you initialize the widget with something like
for a label widget. |
|||||||||
|