X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a37d753c95a3959a71cbc879417d1abb05ef544..5a32574e8ddaf996ad31d0c4414de11c06303cac:/wxPython/src/mac/misc2.py?ds=inline diff --git a/wxPython/src/mac/misc2.py b/wxPython/src/mac/misc2.py index 93159e2f6e..48d481c649 100644 --- a/wxPython/src/mac/misc2.py +++ b/wxPython/src/mac/misc2.py @@ -16,6 +16,48 @@ from events import * from streams import * from utils import * + +# Art clients +wxART_TOOLBAR = 'wxART_TOOLBAR_C' +wxART_MENU = 'wxART_MENU_C' +wxART_FRAME_ICON = 'wxART_FRAME_ICON_C' +wxART_CMN_DIALOG = 'wxART_CMN_DIALOG_C' +wxART_HELP_BROWSER = 'wxART_HELP_BROWSER_C' +wxART_MESSAGE_BOX = 'wxART_MESSAGE_BOX_C' +wxART_OTHER = 'wxART_OTHER_C' + +# Art IDs +wxART_ADD_BOOKMARK = 'wxART_ADD_BOOKMARK' +wxART_DEL_BOOKMARK = 'wxART_DEL_BOOKMARK' +wxART_HELP_SIDE_PANEL = 'wxART_HELP_SIDE_PANEL' +wxART_HELP_SETTINGS = 'wxART_HELP_SETTINGS' +wxART_HELP_BOOK = 'wxART_HELP_BOOK' +wxART_HELP_FOLDER = 'wxART_HELP_FOLDER' +wxART_HELP_PAGE = 'wxART_HELP_PAGE' +wxART_GO_BACK = 'wxART_GO_BACK' +wxART_GO_FORWARD = 'wxART_GO_FORWARD' +wxART_GO_UP = 'wxART_GO_UP' +wxART_GO_DOWN = 'wxART_GO_DOWN' +wxART_GO_TO_PARENT = 'wxART_GO_TO_PARENT' +wxART_GO_HOME = 'wxART_GO_HOME' +wxART_FILE_OPEN = 'wxART_FILE_OPEN' +wxART_PRINT = 'wxART_PRINT' +wxART_HELP = 'wxART_HELP' +wxART_TIP = 'wxART_TIP' +wxART_REPORT_VIEW = 'wxART_REPORT_VIEW' +wxART_LIST_VIEW = 'wxART_LIST_VIEW' +wxART_NEW_DIR = 'wxART_NEW_DIR' +wxART_FOLDER = 'wxART_FOLDER' +wxART_GO_DIR_UP = 'wxART_GO_DIR_UP' +wxART_EXECUTABLE_FILE = 'wxART_EXECUTABLE_FILE' +wxART_NORMAL_FILE = 'wxART_NORMAL_FILE' +wxART_TICK_MARK = 'wxART_TICK_MARK' +wxART_CROSS_MARK = 'wxART_CROSS_MARK' +wxART_ERROR = 'wxART_ERROR' +wxART_QUESTION = 'wxART_QUESTION' +wxART_WARNING = 'wxART_WARNING' +wxART_INFORMATION = 'wxART_INFORMATION' + class wxSystemSettingsPtr : def __init__(self,this): self.this = this @@ -187,12 +229,16 @@ class wxPyTipProviderPtr(wxTipProviderPtr): def __init__(self,this): self.this = this self.thisown = 0 + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(misc2c.wxPyTipProvider__setCallbackInfo,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxPyTipProvider(wxPyTipProviderPtr): def __init__(self,*_args,**_kwargs): self.this = apply(misc2c.new_wxPyTipProvider,_args,_kwargs) self.thisown = 1 + self._setCallbackInfo(self, wxPyTipProvider) @@ -558,6 +604,15 @@ class wxProcessPtr(wxEvtHandlerPtr): def CloseOutput(self, *_args, **_kwargs): val = apply(misc2c.wxProcess_CloseOutput,(self,) + _args, _kwargs) return val + def IsInputOpened(self, *_args, **_kwargs): + val = apply(misc2c.wxProcess_IsInputOpened,(self,) + _args, _kwargs) + return val + def IsInputAvailable(self, *_args, **_kwargs): + val = apply(misc2c.wxProcess_IsInputAvailable,(self,) + _args, _kwargs) + return val + def IsErrorAvailable(self, *_args, **_kwargs): + val = apply(misc2c.wxProcess_IsErrorAvailable,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxProcess(wxProcessPtr): @@ -1192,6 +1247,15 @@ wxLog_GetTraceMask = misc2c.wxLog_GetTraceMask wxLog_IsAllowedTraceMask = misc2c.wxLog_IsAllowedTraceMask +wxProcess_Kill = misc2c.wxProcess_Kill + +wxProcess_Exists = misc2c.wxProcess_Exists + +def wxProcess_Open(*_args, **_kwargs): + val = apply(misc2c.wxProcess_Open,_args,_kwargs) + if val: val = wxProcessPtr(val) + return val + wxFileType_ExpandCommand = misc2c.wxFileType_ExpandCommand wxMimeTypesManager_IsOfType = misc2c.wxMimeTypesManager_IsOfType @@ -1326,6 +1390,28 @@ wxTraceMemAlloc = misc2c.wxTraceMemAlloc wxTraceMessages = misc2c.wxTraceMessages wxTraceResAlloc = misc2c.wxTraceResAlloc wxTraceRefCount = misc2c.wxTraceRefCount +wxKILL_OK = misc2c.wxKILL_OK +wxKILL_BAD_SIGNAL = misc2c.wxKILL_BAD_SIGNAL +wxKILL_ACCESS_DENIED = misc2c.wxKILL_ACCESS_DENIED +wxKILL_NO_PROCESS = misc2c.wxKILL_NO_PROCESS +wxKILL_ERROR = misc2c.wxKILL_ERROR +wxSIGNONE = misc2c.wxSIGNONE +wxSIGHUP = misc2c.wxSIGHUP +wxSIGINT = misc2c.wxSIGINT +wxSIGQUIT = misc2c.wxSIGQUIT +wxSIGILL = misc2c.wxSIGILL +wxSIGTRAP = misc2c.wxSIGTRAP +wxSIGABRT = misc2c.wxSIGABRT +wxSIGIOT = misc2c.wxSIGIOT +wxSIGEMT = misc2c.wxSIGEMT +wxSIGFPE = misc2c.wxSIGFPE +wxSIGKILL = misc2c.wxSIGKILL +wxSIGBUS = misc2c.wxSIGBUS +wxSIGSEGV = misc2c.wxSIGSEGV +wxSIGSYS = misc2c.wxSIGSYS +wxSIGPIPE = misc2c.wxSIGPIPE +wxSIGALRM = misc2c.wxSIGALRM +wxSIGTERM = misc2c.wxSIGTERM wxEVT_END_PROCESS = misc2c.wxEVT_END_PROCESS wxEXEC_ASYNC = misc2c.wxEXEC_ASYNC wxEXEC_SYNC = misc2c.wxEXEC_SYNC @@ -1345,40 +1431,3 @@ wxMAILCAP_GNOME = misc2c.wxMAILCAP_GNOME wxMAILCAP_ALL = misc2c.wxMAILCAP_ALL cvar = misc2c.cvar wxTheMimeTypesManager = wxMimeTypesManagerPtr(misc2c.cvar.wxTheMimeTypesManager) -wxART_TOOLBAR = misc2c.wxART_TOOLBAR -wxART_MENU = misc2c.wxART_MENU -wxART_FRAME_ICON = misc2c.wxART_FRAME_ICON -wxART_CMN_DIALOG = misc2c.wxART_CMN_DIALOG -wxART_HELP_BROWSER = misc2c.wxART_HELP_BROWSER -wxART_MESSAGE_BOX = misc2c.wxART_MESSAGE_BOX -wxART_OTHER = misc2c.wxART_OTHER -wxART_ADD_BOOKMARK = misc2c.wxART_ADD_BOOKMARK -wxART_DEL_BOOKMARK = misc2c.wxART_DEL_BOOKMARK -wxART_HELP_SIDE_PANEL = misc2c.wxART_HELP_SIDE_PANEL -wxART_HELP_SETTINGS = misc2c.wxART_HELP_SETTINGS -wxART_HELP_BOOK = misc2c.wxART_HELP_BOOK -wxART_HELP_FOLDER = misc2c.wxART_HELP_FOLDER -wxART_HELP_PAGE = misc2c.wxART_HELP_PAGE -wxART_GO_BACK = misc2c.wxART_GO_BACK -wxART_GO_FORWARD = misc2c.wxART_GO_FORWARD -wxART_GO_UP = misc2c.wxART_GO_UP -wxART_GO_DOWN = misc2c.wxART_GO_DOWN -wxART_GO_TO_PARENT = misc2c.wxART_GO_TO_PARENT -wxART_GO_HOME = misc2c.wxART_GO_HOME -wxART_FILE_OPEN = misc2c.wxART_FILE_OPEN -wxART_PRINT = misc2c.wxART_PRINT -wxART_HELP = misc2c.wxART_HELP -wxART_TIP = misc2c.wxART_TIP -wxART_REPORT_VIEW = misc2c.wxART_REPORT_VIEW -wxART_LIST_VIEW = misc2c.wxART_LIST_VIEW -wxART_NEW_DIR = misc2c.wxART_NEW_DIR -wxART_FOLDER = misc2c.wxART_FOLDER -wxART_GO_DIR_UP = misc2c.wxART_GO_DIR_UP -wxART_EXECUTABLE_FILE = misc2c.wxART_EXECUTABLE_FILE -wxART_NORMAL_FILE = misc2c.wxART_NORMAL_FILE -wxART_TICK_MARK = misc2c.wxART_TICK_MARK -wxART_CROSS_MARK = misc2c.wxART_CROSS_MARK -wxART_ERROR = misc2c.wxART_ERROR -wxART_QUESTION = misc2c.wxART_QUESTION -wxART_WARNING = misc2c.wxART_WARNING -wxART_INFORMATION = misc2c.wxART_INFORMATION