mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-18 06:06:06 -04:00
Invisible navigation fixes, URLPlayer volume fixes, shutdown fix
This commit is contained in:
@@ -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
|
||||
|
@@ -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)
|
Reference in New Issue
Block a user