wxPython stuff:

1. Added Clipboard and Drag-and-Drop classes
  2. Added wxFontEnumerator
  3. Many changes to wxMenu, wxMenubar
  4. Various other changes and additions
  5. Updates to the demo
  6. Documentation updates


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-11-06 08:30:23 +00:00
parent 024fb9b98a
commit b1462dfa34
63 changed files with 8689 additions and 1862 deletions

View File

@@ -9,6 +9,8 @@ from windows import *
from gdi import *
from clip_dnd import *
from events import *
from mdi import *
@@ -114,23 +116,6 @@ class wxPyApp(wxPyAppPtr):
class __wxPyCleanupPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self,wxc=wxc):
if self.thisown == 1 :
wxc.delete___wxPyCleanup(self)
def __repr__(self):
return "<C __wxPyCleanup instance at %s>" % (self.this,)
class __wxPyCleanup(__wxPyCleanupPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(wxc.new___wxPyCleanup,_args,_kwargs)
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
@@ -153,6 +138,8 @@ _wxStart = wxc._wxStart
_wxSetDictionary = wxc._wxSetDictionary
wxApp_CleanUp = wxc.wxApp_CleanUp
#-------------- VARIABLE WRAPPERS ------------------
@@ -336,12 +323,6 @@ wxSIZE_AUTO_HEIGHT = wxc.wxSIZE_AUTO_HEIGHT
wxSIZE_AUTO = wxc.wxSIZE_AUTO
wxSIZE_USE_EXISTING = wxc.wxSIZE_USE_EXISTING
wxSIZE_ALLOW_MINUS_ONE = wxc.wxSIZE_ALLOW_MINUS_ONE
wxDF_TEXT = wxc.wxDF_TEXT
wxDF_BITMAP = wxc.wxDF_BITMAP
wxDF_METAFILE = wxc.wxDF_METAFILE
wxDF_DIB = wxc.wxDF_DIB
wxDF_OEMTEXT = wxc.wxDF_OEMTEXT
wxDF_FILENAME = wxc.wxDF_FILENAME
wxPORTRAIT = wxc.wxPORTRAIT
wxLANDSCAPE = wxc.wxLANDSCAPE
wxPRINT_QUALITY_HIGH = wxc.wxPRINT_QUALITY_HIGH
@@ -1615,7 +1596,16 @@ class wxApp(wxPyApp):
#----------------------------------------------------------------------------
# DO NOT hold any other references to this object. This is how we know when
# to cleanup system resources that wxWin is holding...
# to cleanup system resources that wxWin is holding. When this module is
# unloaded, the refcount on __cleanMeUp goes to zero and it calls the
# wxApp_CleanUp function.
class __wxPyCleanup:
def __init__(self):
self.cleanup = wxc.wxApp_CleanUp
def __del__(self):
self.cleanup()
__cleanMeUp = __wxPyCleanup()
#----------------------------------------------------------------------------