Lines Matching defs:Gtk
31 gi.require_version('Gtk', '3.0')
32 from gi.repository import GObject, Gtk, Gdk, GdkPixbuf, Gio
85 class DialogOSNextSteps(Gtk.Dialog):
87 Gtk.Dialog.__init__(self, self.__class__.__name__, parent, 0, None)
89 self.connect('destroy', lambda *w: Gtk.main_quit())
91 Gtk.Window.set_default_icon_from_file ("/usr/share/os-about/about-os-window-icon.png")
93 self.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse('white'))
102 vbox = Gtk.VBox(False, 8)
107 logo = Gtk.Image()
115 logo_hbox = Gtk.HBox(True, 0)
119 close_button=self.add_button(Gtk.STOCK_CLOSE,Gtk.ResponseType.CANCEL)
120 self.set_default_response (Gtk.ResponseType.CANCEL)
123 close_button.connect('clicked', lambda *w: Gtk.main_quit())
132 section_hbox = Gtk.HBox(False, 10)
135 header = Gtk.Image()
139 header_vbox = Gtk.VBox(False, 0)
142 label = Gtk.Label()
145 label.set_justify(Gtk.Justification.LEFT)
148 detail_vbox = Gtk.VBox(False, 0)
166 hbox = Gtk.HBox(False, 0)
167 label = Gtk.Label()
169 label.set_justify(Gtk.Justification.LEFT)
174 label = Gtk.Label()
178 link_button = Gtk.Label()
185 label = Gtk.Label()
193 hbox = Gtk.HBox(False, 0)
194 label = Gtk.Label()
196 label.set_justify(Gtk.Justification.LEFT)
201 label = Gtk.Label()
205 link_button = Gtk.Label()
210 label = Gtk.Label()
222 style_provider = Gtk.CssProvider()
231 Gtk.StyleContext.add_provider_for_screen(
234 Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION
238 Gtk.main()