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:
@@ -10,7 +10,7 @@ from gdi import *
|
||||
from events import *
|
||||
|
||||
from controls import *
|
||||
import wxp
|
||||
import wx
|
||||
class wxListItemPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
@@ -313,7 +313,7 @@ class wxListCtrl(wxListCtrlPtr):
|
||||
args = tuple(argl)
|
||||
self.this = apply(controls2c.new_wxListCtrl,(arg0.this,arg1,)+args)
|
||||
self.thisown = 1
|
||||
wxp._StdWindowCallbacks(self)
|
||||
wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -581,6 +581,17 @@ class wxTreeCtrlPtr(wxControlPtr):
|
||||
def EndEditLabel(self,arg0,*args):
|
||||
val = apply(controls2c.wxTreeCtrl_EndEditLabel,(self.this,arg0.this,)+args)
|
||||
return val
|
||||
def SetItemBold(self,arg0,*args):
|
||||
val = apply(controls2c.wxTreeCtrl_SetItemBold,(self.this,arg0.this,)+args)
|
||||
return val
|
||||
def IsBold(self,arg0):
|
||||
val = controls2c.wxTreeCtrl_IsBold(self.this,arg0.this)
|
||||
return val
|
||||
def HitTest(self,arg0):
|
||||
val = controls2c.wxTreeCtrl_HitTest(self.this,arg0.this)
|
||||
val = wxTreeItemIdPtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxTreeCtrl instance>"
|
||||
class wxTreeCtrl(wxTreeCtrlPtr):
|
||||
@@ -593,7 +604,7 @@ class wxTreeCtrl(wxTreeCtrlPtr):
|
||||
args = tuple(argl)
|
||||
self.this = apply(controls2c.new_wxTreeCtrl,(arg0.this,)+args)
|
||||
self.thisown = 1
|
||||
wxp._StdWindowCallbacks(self)
|
||||
wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user