mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-18 06:06:06 -04:00
The next generation branch has been added
This commit is contained in:
3
src/widgetUtils/__init__.py
Normal file
3
src/widgetUtils/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
import platform
|
||||
if platform.system() == "Windows":
|
||||
from wxUtils import *
|
17
src/widgetUtils/wxUtils.py
Normal file
17
src/widgetUtils/wxUtils.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import wx
|
||||
|
||||
# Code responses for WX dialogs.
|
||||
OK = wx.ID_OK
|
||||
CANCEL = wx.ID_CANCEL
|
||||
CLOSE = wx.ID_CLOSE
|
||||
YES = wx.ID_YES
|
||||
NO = wx.ID_NO
|
||||
|
||||
#events
|
||||
CLOSE_EVENT = wx.EVT_CLOSE
|
||||
|
||||
def exit_application():
|
||||
wx.GetApp().ExitMainLoop()
|
||||
|
||||
def connect_event(parent, event, func):
|
||||
return getattr(parent, "Bind")(event, func)
|
Reference in New Issue
Block a user