X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/49df1f5269f90cc58f724c95265e4843b32c3a25..4bb081fd23dc73d1bc005f67649c9eb0d244dc14:/wxPython/src/gtk/misc2.py diff --git a/wxPython/src/gtk/misc2.py b/wxPython/src/gtk/misc2.py index 7e1214c397..3cb4e32448 100644 --- a/wxPython/src/gtk/misc2.py +++ b/wxPython/src/gtk/misc2.py @@ -7,6 +7,8 @@ from misc import * from gdi import * +from fonts import * + from clip_dnd import * from events import * @@ -108,39 +110,6 @@ class wxCaret(wxCaretPtr): -class wxFontEnumeratorPtr : - def __init__(self,this): - self.this = this - self.thisown = 0 - def __del__(self,misc2c=misc2c): - if self.thisown == 1 : - misc2c.delete_wxFontEnumerator(self) - def _setCallbackInfo(self, *_args, **_kwargs): - val = apply(misc2c.wxFontEnumerator__setCallbackInfo,(self,) + _args, _kwargs) - return val - def EnumerateFacenames(self, *_args, **_kwargs): - val = apply(misc2c.wxFontEnumerator_EnumerateFacenames,(self,) + _args, _kwargs) - return val - def EnumerateEncodings(self, *_args, **_kwargs): - val = apply(misc2c.wxFontEnumerator_EnumerateEncodings,(self,) + _args, _kwargs) - return val - def GetEncodings(self, *_args, **_kwargs): - val = apply(misc2c.wxFontEnumerator_GetEncodings,(self,) + _args, _kwargs) - return val - def GetFacenames(self, *_args, **_kwargs): - val = apply(misc2c.wxFontEnumerator_GetFacenames,(self,) + _args, _kwargs) - return val - def __repr__(self): - return "" % (self.this,) -class wxFontEnumerator(wxFontEnumeratorPtr): - def __init__(self,*_args,**_kwargs): - self.this = apply(misc2c.new_wxFontEnumerator,_args,_kwargs) - self.thisown = 1 - self._setCallbackInfo(self, wxFontEnumerator, 0) - - - - class wxBusyCursorPtr : def __init__(self,this): self.this = this @@ -367,9 +336,6 @@ class wxLogPtr : def HasPendingMessages(self, *_args, **_kwargs): val = apply(misc2c.wxLog_HasPendingMessages,(self,) + _args, _kwargs) return val - def SetVerbose(self, *_args, **_kwargs): - val = apply(misc2c.wxLog_SetVerbose,(self,) + _args, _kwargs) - return val def GetVerbose(self, *_args, **_kwargs): val = apply(misc2c.wxLog_GetVerbose,(self,) + _args, _kwargs) return val @@ -458,23 +424,6 @@ class wxLogWindow(wxLogWindowPtr): -class wxLogNullPtr : - def __init__(self,this): - self.this = this - self.thisown = 0 - def __del__(self,misc2c=misc2c): - if self.thisown == 1 : - misc2c.delete_wxLogNull(self) - def __repr__(self): - return "" % (self.this,) -class wxLogNull(wxLogNullPtr): - def __init__(self,*_args,**_kwargs): - self.this = apply(misc2c.new_wxLogNull,_args,_kwargs) - self.thisown = 1 - - - - class wxLogChainPtr(wxLogPtr): def __init__(self,this): self.this = this @@ -502,6 +451,23 @@ class wxLogChain(wxLogChainPtr): +class wxLogNullPtr : + def __init__(self,this): + self.this = this + self.thisown = 0 + def __del__(self,misc2c=misc2c): + if self.thisown == 1 : + misc2c.delete_wxLogNull(self) + def __repr__(self): + return "" % (self.this,) +class wxLogNull(wxLogNullPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(misc2c.new_wxLogNull,_args,_kwargs) + self.thisown = 1 + + + + class wxPyLogPtr(wxLogPtr): def __init__(self,this): self.this = this @@ -965,8 +931,8 @@ class wxFileHistoryPtr(wxObjectPtr): def AddFilesToMenu(self, *_args, **_kwargs): val = apply(misc2c.wxFileHistory_AddFilesToMenu,(self,) + _args, _kwargs) return val - def AddFilesToSingleMenu(self, *_args, **_kwargs): - val = apply(misc2c.wxFileHistory_AddFilesToSingleMenu,(self,) + _args, _kwargs) + def AddFilesToThisMenu(self, *_args, **_kwargs): + val = apply(misc2c.wxFileHistory_AddFilesToThisMenu,(self,) + _args, _kwargs) return val def GetHistoryFile(self, *_args, **_kwargs): val = apply(misc2c.wxFileHistory_GetHistoryFile,(self,) + _args, _kwargs) @@ -997,6 +963,8 @@ wxLoadFileSelector = misc2c.wxLoadFileSelector wxSaveFileSelector = misc2c.wxSaveFileSelector +wxDirSelector = misc2c.wxDirSelector + wxGetTextFromUser = misc2c.wxGetTextFromUser wxGetPasswordFromUser = misc2c.wxGetPasswordFromUser @@ -1038,14 +1006,6 @@ def wxGetClientDisplayRect(*_args, **_kwargs): wxSetCursor = misc2c.wxSetCursor -def wxFindWindowByLabel(*_args, **_kwargs): - val = apply(misc2c.wxFindWindowByLabel,_args,_kwargs) - return val - -def wxFindWindowByName(*_args, **_kwargs): - val = apply(misc2c.wxFindWindowByName,_args,_kwargs) - return val - wxBeginBusyCursor = misc2c.wxBeginBusyCursor def wxGetActiveWindow(*_args, **_kwargs): @@ -1060,6 +1020,10 @@ def wxFindWindowAtPoint(*_args, **_kwargs): val = apply(misc2c.wxFindWindowAtPoint,_args,_kwargs) return val +def wxGetTopLevelParent(*_args, **_kwargs): + val = apply(misc2c.wxGetTopLevelParent,_args,_kwargs) + return val + wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier wxResourceClear = misc2c.wxResourceClear @@ -1131,6 +1095,8 @@ wxLogStatusFrame = misc2c.wxLogStatusFrame wxLogSysError = misc2c.wxLogSysError +wxSafeShowMessage = misc2c.wxSafeShowMessage + wxExecute = misc2c.wxExecute def wxWaveData(*_args, **_kwargs): @@ -1152,6 +1118,10 @@ wxSystemSettings_GetMetric = misc2c.wxSystemSettings_GetMetric wxSystemSettings_HasFeature = misc2c.wxSystemSettings_HasFeature +wxSystemSettings_GetScreenType = misc2c.wxSystemSettings_GetScreenType + +wxSystemSettings_SetScreenType = misc2c.wxSystemSettings_SetScreenType + wxToolTip_Enable = misc2c.wxToolTip_Enable wxToolTip_SetDelay = misc2c.wxToolTip_SetDelay @@ -1178,6 +1148,8 @@ wxLog_Suspend = misc2c.wxLog_Suspend wxLog_Resume = misc2c.wxLog_Resume +wxLog_SetVerbose = misc2c.wxLog_SetVerbose + wxLog_DontCreateOnDemand = misc2c.wxLog_DontCreateOnDemand wxLog_SetTraceMask = misc2c.wxLog_SetTraceMask @@ -1289,6 +1261,11 @@ wxSYS_SHOW_SOUNDS = misc2c.wxSYS_SHOW_SOUNDS wxSYS_SWAP_BUTTONS = misc2c.wxSYS_SWAP_BUTTONS wxSYS_CAN_DRAW_FRAME_DECORATIONS = misc2c.wxSYS_CAN_DRAW_FRAME_DECORATIONS wxSYS_CAN_ICONIZE_FRAME = misc2c.wxSYS_CAN_ICONIZE_FRAME +wxSYS_SCREEN_NONE = misc2c.wxSYS_SCREEN_NONE +wxSYS_SCREEN_TINY = misc2c.wxSYS_SCREEN_TINY +wxSYS_SCREEN_PDA = misc2c.wxSYS_SCREEN_PDA +wxSYS_SCREEN_SMALL = misc2c.wxSYS_SCREEN_SMALL +wxSYS_SCREEN_DESKTOP = misc2c.wxSYS_SCREEN_DESKTOP wxLOG_FatalError = misc2c.wxLOG_FatalError wxLOG_Error = misc2c.wxLOG_Error wxLOG_Warning = misc2c.wxLOG_Warning @@ -1300,6 +1277,10 @@ wxLOG_Trace = misc2c.wxLOG_Trace wxLOG_Progress = misc2c.wxLOG_Progress wxLOG_User = misc2c.wxLOG_User wxEVT_END_PROCESS = misc2c.wxEVT_END_PROCESS +wxEXEC_ASYNC = misc2c.wxEXEC_ASYNC +wxEXEC_SYNC = misc2c.wxEXEC_SYNC +wxEXEC_NOHIDE = misc2c.wxEXEC_NOHIDE +wxEXEC_MAKE_GROUP_LEADER = misc2c.wxEXEC_MAKE_GROUP_LEADER wxMAILCAP_STANDARD = misc2c.wxMAILCAP_STANDARD wxMAILCAP_NETSCAPE = misc2c.wxMAILCAP_NETSCAPE wxMAILCAP_KDE = misc2c.wxMAILCAP_KDE