Add Gtk.ShortcutsWindows to application (resolve #14)
This commit is contained in:
parent
38c21cb468
commit
03fa9c4db7
5 changed files with 164 additions and 0 deletions
|
|
@ -24,6 +24,25 @@ from mcg.zeroconf import ZeroconfProvider
|
|||
|
||||
|
||||
|
||||
class ShortcutsDialog():
|
||||
|
||||
|
||||
def __init__(self, builder, window):
|
||||
# Widgets
|
||||
self._window = builder.get_object('shortcuts-dialog')
|
||||
self._window.set_transient_for(window.get())
|
||||
|
||||
|
||||
def get(self):
|
||||
return self._window
|
||||
|
||||
|
||||
def present(self):
|
||||
self._window.present()
|
||||
|
||||
|
||||
|
||||
|
||||
class InfoDialog():
|
||||
|
||||
|
||||
|
|
@ -183,6 +202,10 @@ class Window():
|
|||
self._appwindow.add_action(self._panel_action)
|
||||
|
||||
|
||||
def get(self):
|
||||
return self._appwindow
|
||||
|
||||
|
||||
def present(self):
|
||||
self._appwindow.present()
|
||||
self._appwindow.resize(800, 600)
|
||||
|
|
|
|||
Loading…
Reference in a new issue