Home | History | Annotate | Download | only in gui

Lines Matching refs:Gtk

26 gi.require_version('Gtk', '3.0')
27 from gi.repository import Gtk
98 xml = Gtk.Builder()
285 self.boolean_store = Gtk.ListStore(GObject.TYPE_STRING, GObject.TYPE_STRING)
287 self.boolean_store.set_sort_column_id(0, Gtk.SortType.ASCENDING)
288 col = Gtk.TreeViewColumn(_("Name"), Gtk.CellRendererText(), text=0)
290 col = Gtk.TreeViewColumn(_("Description"), Gtk.CellRendererText(), text=1)
294 self.role_store = Gtk.ListStore(GObject.TYPE_STRING)
296 self.role_treeview.get_selection().set_mode(Gtk.SelectionMode.MULTIPLE)
297 self.role_store.set_sort_column_id(0, Gtk.SortType.ASCENDING)
298 col = Gtk.TreeViewColumn(_("Role"), Gtk.CellRendererText(), text=0)
302 self.existing_user_store = Gtk.ListStore(GObject.TYPE_STRING)
304 self.existing_user_store.set_sort_column_id(0, Gtk.SortType.ASCENDING)
305 col = Gtk.TreeViewColumn(_("Existing_User"), Gtk.CellRendererText(), text=0)
315 self.transition_store = Gtk.ListStore(GObject.TYPE_STRING)
317 self.transition_treeview.get_selection().set_mode(Gtk.SelectionMode.MULTIPLE)
318 self.transition_store.set_sort_column_id(0, Gtk.SortType.ASCENDING)
319 col = Gtk.TreeViewColumn(_("Application"), Gtk.CellRendererText(), text=0)
323 self.user_transition_store = Gtk.ListStore(GObject.TYPE_STRING)
325 self.user_transition_treeview.get_selection().set_mode(Gtk.SelectionMode.MULTIPLE)
326 self.user_transition_store.set_sort_column_id(0, Gtk.SortType.ASCENDING)
327 col = Gtk.TreeViewColumn(_("Application"), Gtk.CellRendererText(), text=0)
337 self.admin_store = Gtk.ListStore(GObject.TYPE_STRING)
339 self.admin_treeview.get_selection().set_mode(Gtk.SelectionMode.MULTIPLE)
340 self.admin_store.set_sort_column_id(0, Gtk.SortType.ASCENDING)
341 col = Gtk.TreeViewColumn(_("Application"), Gtk.CellRendererText(), text=0)
391 self.xml.get_object("cancel_button").set_label(Gtk.STOCK_CLOSE)
396 self.forward_button.set_label(Gtk.STOCK_APPLY)
401 Gtk.STOCK_GO_FORWARD)
414 dlg = Gtk.MessageDialog(None, 0, Gtk.MessageType.INFO,
415 Gtk.ButtonsType.YES_NO,
418 dlg.set_position(Gtk.WindowPosition.MOUSE)
425 dlg = Gtk.MessageDialog(None, 0, Gtk.MessageType.INFO,
426 Gtk.ButtonsType.OK,
428 dlg.set_position(Gtk.WindowPosition.MOUSE)
434 dlg = Gtk.MessageDialog(None, 0, Gtk.MessageType.ERROR,
435 Gtk.ButtonsType.CLOSE,
437 dlg.set_position(Gtk.WindowPosition.MOUSE)
558 if rc == Gtk.ResponseType.CANCEL:
567 if rc == Gtk.ResponseType.CANCEL:
577 self.file_dialog.set_action(Gtk.FileChooserAction.OPEN)
581 if rc == Gtk.ResponseType.CANCEL:
588 self.file_dialog.set_action(Gtk.FileChooserAction.OPEN)
592 if rc == Gtk.ResponseType.CANCEL:
599 self.file_dialog.set_action(Gtk.FileChooserAction.OPEN)
607 self.file_dialog.set_action(Gtk.FileChooserAction.SELECT_FOLDER)
616 Gtk.main_quit()
658 self.store = Gtk.ListStore(GObject.TYPE_STRING, GObject.TYPE_INT)
660 col = Gtk.TreeViewColumn("", Gtk.CellRendererText(), text=0)
667 self.file_dialog.set_action(Gtk.FileChooserAction.SELECT_FOLDER)
671 if rc == Gtk.ResponseType.CANCEL:
683 if self.verify(_("Type %s_t already defined in current policy.\nDo you want to continue?") % name, _("Verify Name")) == Gtk.ResponseType.NO:
687 if self.verify(_("Module %s already loaded in current policy.\nDo you want to continue?") % name, _("Verify Name")) == Gtk.ResponseType.NO:
778 Gtk.main()