b6d449681d
- replaced Gtk.HBox/Gtk.VBox by GtkBox as seen in [1] and [2]
GtkHbox and GtkVBox are deprecated
- use delete-event instead of destroy event in GtkWindow
- replaced icon_size for pixel_size where used
it's also deprecated as seen in commit [3]
- use sugar_theme in all examples; set it manually not by just
importing common module
- fixed GtkBox.pack_start arguments
- flake/pep8 fixes
[1] https://developer.gnome.org/gtk3/stable/GtkHBox.html
[2] https://developer.gnome.org/gtk3/stable/GtkVBox.html
[3] 5802d67ee1
21 lines
329 B
Python
21 lines
329 B
Python
from gi.repository import Gtk
|
|
|
|
import common
|
|
|
|
|
|
test = common.Test()
|
|
test.show()
|
|
|
|
box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
|
|
test.pack_start(box, True, False, 10)
|
|
box.show()
|
|
|
|
bar = Gtk.ProgressBar()
|
|
bar.set_fraction(0.5)
|
|
box.pack_start(bar, True, True, 10)
|
|
bar.show()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
common.main(test)
|