Changed the import semantics from "from wxPython import *" to "from
wxPython.wx import *" This is for people who are worried about namespace pollution, they can use "from wxPython import wx" and then prefix all the wxPython identifiers with "wx." Added wxTaskbarIcon for wxMSW. Made the events work for wxGrid. Added wxConfig. Added wxMiniFrame for wxGTK, (untested.) Changed many of the args and return values that were pointers to gdi objects to references to reflect changes in the wxWindows API. Other assorted fixes and additions. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -6,6 +6,7 @@ from misc import *
|
||||
from gdi import *
|
||||
|
||||
from windows import *
|
||||
import wx
|
||||
class wxColourDataPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
@@ -65,7 +66,7 @@ class wxColourDialog(wxColourDialogPtr):
|
||||
args = tuple(argl)
|
||||
self.this = apply(cmndlgsc.new_wxColourDialog,(arg0.this,)+args)
|
||||
self.thisown = 1
|
||||
wxp._StdDialogCallbacks(self)
|
||||
wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -102,7 +103,7 @@ class wxDirDialog(wxDirDialogPtr):
|
||||
args = tuple(argl)
|
||||
self.this = apply(cmndlgsc.new_wxDirDialog,(arg0.this,)+args)
|
||||
self.thisown = 1
|
||||
wxp._StdDialogCallbacks(self)
|
||||
wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -166,7 +167,7 @@ class wxFileDialog(wxFileDialogPtr):
|
||||
args = tuple(argl)
|
||||
self.this = apply(cmndlgsc.new_wxFileDialog,(arg0.this,)+args)
|
||||
self.thisown = 1
|
||||
wxp._StdDialogCallbacks(self)
|
||||
wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -197,7 +198,7 @@ class wxSingleChoiceDialog(wxSingleChoiceDialogPtr):
|
||||
args = tuple(argl)
|
||||
self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,(arg0.this,arg1,arg2,arg3,)+args)
|
||||
self.thisown = 1
|
||||
wxp._StdDialogCallbacks(self)
|
||||
wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -225,7 +226,7 @@ class wxTextEntryDialog(wxTextEntryDialogPtr):
|
||||
args = tuple(argl)
|
||||
self.this = apply(cmndlgsc.new_wxTextEntryDialog,(arg0.this,arg1,)+args)
|
||||
self.thisown = 1
|
||||
wxp._StdDialogCallbacks(self)
|
||||
wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -312,7 +313,7 @@ class wxFontDialog(wxFontDialogPtr):
|
||||
args = tuple(argl)
|
||||
self.this = apply(cmndlgsc.new_wxFontDialog,(arg0.this,)+args)
|
||||
self.thisown = 1
|
||||
wxp._StdDialogCallbacks(self)
|
||||
wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -443,7 +444,7 @@ class wxPageSetupDialog(wxPageSetupDialogPtr):
|
||||
args = tuple(argl)
|
||||
self.this = apply(cmndlgsc.new_wxPageSetupDialog,(arg0.this,)+args)
|
||||
self.thisown = 1
|
||||
wxp._StdDialogCallbacks(self)
|
||||
wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -554,7 +555,7 @@ class wxPrintDialog(wxPrintDialogPtr):
|
||||
args = tuple(argl)
|
||||
self.this = apply(cmndlgsc.new_wxPrintDialog,(arg0.this,)+args)
|
||||
self.thisown = 1
|
||||
wxp._StdDialogCallbacks(self)
|
||||
wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -576,7 +577,7 @@ class wxMessageDialog(wxMessageDialogPtr):
|
||||
args = tuple(argl)
|
||||
self.this = apply(cmndlgsc.new_wxMessageDialog,(arg0.this,arg1,)+args)
|
||||
self.thisown = 1
|
||||
wxp._StdDialogCallbacks(self)
|
||||
wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user