Invisible navigation fixes, URLPlayer volume fixes, shutdown fix

This commit is contained in:
2015-01-20 22:07:13 -06:00
parent c25412bd32
commit 399de75d64
6 changed files with 130 additions and 110 deletions

View File

@@ -1,5 +1,6 @@
from gi.repository import Gtk, Gdk
toolkit = "gtk"
# Code responses for GTK +3 dialogs.
# this is when an user presses OK on a dialogue.
OK = Gtk.ResponseType.OK

View File

@@ -1,5 +1,6 @@
import wx
toolkit = "wx"
# Code responses for WX dialogs.
# this is when an user presses OK on a dialogue.
OK = wx.ID_OK
@@ -36,3 +37,6 @@ def connect_event(parent, event, func, menuitem=None, *args, **kwargs):
return getattr(parent, "Bind")(event, func, *args, **kwargs)
else:
return getattr(parent, "Bind")(event, func, menuitem, *args, **kwargs)
def connectExitFunction(exitFunction):
wx.GetApp().Bind(wx.EVT_END_SESSION, exitFunction)