Add Gtk.ShortcutsWindows to application (resolve #14)

This commit is contained in:
coderkun 2017-04-26 11:48:32 +02:00
commit 03fa9c4db7
5 changed files with 164 additions and 0 deletions

View file

@ -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)