mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-21 21:44:25 +08:00
wxPython 2.0b9, second phase (gtk)
Added gobs of stuff, see wxPython/README.txt for details git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
*.zip
|
||||
*.pyc
|
||||
*.pyo
|
||||
.cvsignore
|
||||
.emacs.desktop
|
||||
__init__.py
|
||||
|
||||
@@ -3,7 +3,7 @@ wxPython\*.txt
|
||||
wxPython\demo\*.py
|
||||
wxPython\demo\bitmaps\*.bmp
|
||||
wxPython\demo\bitmaps\*.ico
|
||||
|
||||
wxPython\demo\README.txt
|
||||
|
||||
|
||||
wxPython\src\*.i
|
||||
|
||||
@@ -36,8 +36,7 @@ information on downloading source or binaries.""",
|
||||
if d.ShowModal() == wx.wxID_CANCEL:
|
||||
d = wx.wxMessageDialog(wx.NULL, "I kid you not! Pressing Cancel won't help you!", "Not a joke", wx.wxOK)
|
||||
d.ShowModal()
|
||||
import sys
|
||||
sys.exit()
|
||||
raise ImportError
|
||||
|
||||
#
|
||||
# Plotting classes...
|
||||
|
||||
@@ -2,9 +2,11 @@
|
||||
Makefile
|
||||
Makefile.pre
|
||||
Setup
|
||||
Setup.in.new
|
||||
Setup.save
|
||||
Setup.save
|
||||
config.c
|
||||
glcanvas.h
|
||||
glcanvasc.exp
|
||||
make.bat
|
||||
sedscript
|
||||
|
||||
@@ -335,6 +335,7 @@ PYMODULES = $(GENCODEDIR)/wx.py $(GENCODEDIR)/events.py \
|
||||
$(GENCODEDIR)/windows2.py $(GENCODEDIR)/cmndlgs.py \
|
||||
$(GENCODEDIR)/frames.py $(GENCODEDIR)/stattool.py \
|
||||
$(GENCODEDIR)/utils.py $(GENCODEDIR)/windows3.py \
|
||||
$(GENCODEDIR)/image.py $(GENCODEDIR)/glcanvas.py \
|
||||
__init__.py
|
||||
|
||||
|
||||
@@ -350,12 +351,6 @@ $(GENCODEDIR)/%.py : %.i
|
||||
$(GENCODEDIR)/wx.cpp $(GENCODEDIR)/wx.py : wx.i my_typemaps.i _defs.i _extras.py
|
||||
swig $(SWIGFLAGS) -o $(GENCODEDIR)/wx.cpp wx.i
|
||||
|
||||
ifdef SEPARATE
|
||||
$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py : utils.i my_typemaps.i
|
||||
swig $(SWIGFLAGS) -o $(GENCODEDIR)/utils.cpp utils.i
|
||||
else
|
||||
$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py : utils.i my_typemaps.i _defs.i
|
||||
endif
|
||||
|
||||
# define some dependencies
|
||||
$(GENCODEDIR)/windows.cpp $(GENCODEDIR)/windows.py : windows.i my_typemaps.i _defs.i
|
||||
@@ -370,11 +365,17 @@ $(GENCODEDIR)/controls2.cpp $(GENCODEDIR)/controls2.py : controls2.i my_typemap
|
||||
$(GENCODEDIR)/cmndlgs.cpp $(GENCODEDIR)/cmndlgs.py : cmndlgs.i my_typemaps.i _defs.i
|
||||
$(GENCODEDIR)/frames.cpp $(GENCODEDIR)/frames.py : frames.i my_typemaps.i _defs.i
|
||||
$(GENCODEDIR)/stattool.cpp $(GENCODEDIR)/stattool.py : stattool.i my_typemaps.i _defs.i
|
||||
$(GENCODEDIR)/image.cpp $(GENCODEDIR)/image.py : image.i my_typemaps.i _defs.i
|
||||
$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py : utils.i my_typemaps.i _defs.i
|
||||
$(GENCODEDIR)/glcanvas.cpp $(GENCODEDIR)/glcanvas.py : glcanvas.i my_typemaps.i _defs.i
|
||||
|
||||
$(GENCODEDIR)/helpers.cpp:
|
||||
ln -s `pwd`/helpers.cpp $@
|
||||
|
||||
$(GENCODEDIR)/_glcanvas.cpp:
|
||||
-cp $(WXWIN)/utils/glcanvas/$(GENCODEDIR)/glcanvas.cpp $@
|
||||
-cp $(WXWIN)/utils/glcanvas/$(GENCODEDIR)/glcanvas.h ./glcanvas.h
|
||||
|
||||
|
||||
wxInstall : sharedmods $(PYMODULES)
|
||||
if test ! -d $(TARGETDIR) ; then \
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
*shared*
|
||||
|
||||
CCC=c++
|
||||
WXWIN=../../..
|
||||
GENCODEDIR=gtk
|
||||
srcdir=$(GENCODEDIR)
|
||||
WX_CONFIG_CFLAGS=`wx-config --cflags`
|
||||
@@ -27,21 +28,19 @@ MY_LINKCC=$(CCC)
|
||||
|
||||
|
||||
## Pick one of these, or set your own. This is where the wxPython module
|
||||
## should be installed. It should be a subdirectory named wxPython.
|
||||
## should be installed. It should be a subdirectory named wxPython.
|
||||
TARGETDIR=..
|
||||
#TARGETDIR=$(BINLIBDEST)/site-packages/wxPython
|
||||
#TARGETDIR=$(BINLIBDEST)/wxPython
|
||||
|
||||
SEPARATE=-DSEPARATE
|
||||
|
||||
utilsc utils.cpp \
|
||||
-I. $(WX_CONFIG_CFLAGS) \
|
||||
-DSWIG_GLOBAL -DWXP_WITH_THREAD $(SEPARATE) -Xlinker $(WX_CONFIG_LIBS)
|
||||
|
||||
wxc wx.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \
|
||||
mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \
|
||||
frames.cpp stattool.cpp windows3.cpp \
|
||||
frames.cpp stattool.cpp windows3.cpp image.cpp \
|
||||
utils.cpp \
|
||||
## comment out the next line to disable wxGLCanvas
|
||||
_glcanvas.cpp glcanvas.cpp -DWITH_GLCANVAS -lGL -lGLU \
|
||||
-I. $(WX_CONFIG_CFLAGS) -I/usr/local/lib/glib/include \
|
||||
-DSWIG_GLOBAL -DWXP_WITH_THREAD $(SEPARATE) -Xlinker $(WX_CONFIG_LIBS)
|
||||
|
||||
|
||||
##-Xlinker -Bstatic
|
||||
|
||||
@@ -123,16 +123,23 @@ void glNormalPointerEXT(GLenum type, GLsizei stride, GLsizei count, const GLvoid
|
||||
void glTexCoordPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
|
||||
void glVertexPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
|
||||
|
||||
#ifndef __WXGTK__
|
||||
/* EXT_color_subtable */
|
||||
void glColorSubtableEXT(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *table);
|
||||
#endif
|
||||
|
||||
/* EXT_color_table */
|
||||
void glColorTableEXT(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
|
||||
#ifndef __WXGTK__
|
||||
void glCopyColorTableEXT(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
|
||||
#endif
|
||||
void glGetColorTableEXT(GLenum target, GLenum format, GLenum type, GLvoid *table);
|
||||
#ifndef __WXGTK__
|
||||
void glGetColorTableParamaterfvEXT(GLenum target, GLenum pname, GLfloat *params);
|
||||
void glGetColorTavleParameterivEXT(GLenum target, GLenum pname, GLint *params);
|
||||
#endif
|
||||
|
||||
#ifndef __WXGTK__
|
||||
/* SGI_compiled_vertex_array */
|
||||
void glLockArraysSGI(GLint first, GLsizei count);
|
||||
void glUnlockArraysSGI();
|
||||
@@ -149,7 +156,7 @@ void glIndexMaterialSGI(GLenum face, GLenum mode);
|
||||
|
||||
/* WIN_swap_hint */
|
||||
void glAddSwapHintRectWin(GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// From GL.H
|
||||
@@ -199,8 +206,10 @@ enum {
|
||||
GL_BACK,
|
||||
GL_BACK_LEFT,
|
||||
GL_BACK_RIGHT,
|
||||
#ifndef __WXGTK__
|
||||
GL_BGRA_EXT,
|
||||
GL_BGR_EXT,
|
||||
#endif
|
||||
GL_BITMAP,
|
||||
GL_BITMAP_TOKEN,
|
||||
GL_BLEND,
|
||||
@@ -303,7 +312,9 @@ enum {
|
||||
GL_DONT_CARE,
|
||||
GL_DOUBLE,
|
||||
GL_DOUBLEBUFFER,
|
||||
#ifndef __WXGTK__
|
||||
GL_DOUBLE_EXT,
|
||||
#endif
|
||||
GL_DRAW_BUFFER,
|
||||
GL_DRAW_PIXEL_TOKEN,
|
||||
GL_DST_ALPHA,
|
||||
@@ -324,7 +335,9 @@ enum {
|
||||
GL_EXP,
|
||||
GL_EXP2,
|
||||
GL_EXTENSIONS,
|
||||
#ifndef __WXGTK__
|
||||
GL_EXT_bgra,
|
||||
#endif
|
||||
GL_EXT_paletted_texture,
|
||||
GL_EXT_vertex_array,
|
||||
GL_EYE_LINEAR,
|
||||
@@ -346,7 +359,6 @@ enum {
|
||||
GL_FOG_HINT,
|
||||
GL_FOG_INDEX,
|
||||
GL_FOG_MODE,
|
||||
GL_FOG_SPECULAR_TEXTURE_WIN,
|
||||
GL_FOG_START,
|
||||
GL_FRONT,
|
||||
GL_FRONT_AND_BACK,
|
||||
@@ -470,8 +482,6 @@ enum {
|
||||
GL_MAX_ATTRIB_STACK_DEPTH,
|
||||
GL_MAX_CLIENT_ATTRIB_STACK_DEPTH,
|
||||
GL_MAX_CLIP_PLANES,
|
||||
GL_MAX_ELEMENTS_INDICES_WIN,
|
||||
GL_MAX_ELEMENTS_VERTICES_WIN,
|
||||
GL_MAX_EVAL_ORDER,
|
||||
GL_MAX_LIGHTS,
|
||||
GL_MAX_LIST_NESTING,
|
||||
@@ -530,8 +540,6 @@ enum {
|
||||
GL_PACK_SWAP_BYTES,
|
||||
GL_PASS_THROUGH_TOKEN,
|
||||
GL_PERSPECTIVE_CORRECTION_HINT,
|
||||
GL_PHONG_HINT_WIN,
|
||||
GL_PHONG_WIN,
|
||||
GL_PIXEL_MAP_A_TO_A,
|
||||
GL_PIXEL_MAP_A_TO_A_SIZE,
|
||||
GL_PIXEL_MAP_B_TO_B,
|
||||
@@ -736,8 +744,6 @@ enum {
|
||||
GL_VERTEX_ARRAY_TYPE_EXT,
|
||||
GL_VIEWPORT,
|
||||
GL_VIEWPORT_BIT,
|
||||
GL_WIN_draw_range_elements,
|
||||
GL_WIN_swap_hint,
|
||||
GL_XOR,
|
||||
GL_ZERO,
|
||||
GL_ZOOM_X,
|
||||
@@ -1086,7 +1092,12 @@ void glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.2 1999/05/01 04:40:57 RD
|
||||
// wxPython 2.0b9, second phase (gtk)
|
||||
// Added gobs of stuff, see wxPython/README.txt for details
|
||||
//
|
||||
// Revision 1.1 1999/04/30 03:29:18 RD
|
||||
//
|
||||
// wxPython 2.0b9, first phase (win32)
|
||||
// Added gobs of stuff, see wxPython/README.txt for details
|
||||
//
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
_glcanvas.cpp
|
||||
+1318
-723
File diff suppressed because it is too large
Load Diff
@@ -318,106 +318,113 @@ class wxFontDialog(wxFontDialogPtr):
|
||||
|
||||
|
||||
|
||||
class wxPageSetupDataPtr :
|
||||
class wxPageSetupDialogDataPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self):
|
||||
if self.thisown == 1 :
|
||||
cmndlgsc.delete_wxPageSetupData(self.this)
|
||||
cmndlgsc.delete_wxPageSetupDialogData(self.this)
|
||||
def EnableHelp(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupData_EnableHelp(self.this,arg0)
|
||||
val = cmndlgsc.wxPageSetupDialogData_EnableHelp(self.this,arg0)
|
||||
return val
|
||||
def EnableMargins(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupData_EnableMargins(self.this,arg0)
|
||||
val = cmndlgsc.wxPageSetupDialogData_EnableMargins(self.this,arg0)
|
||||
return val
|
||||
def EnableOrientation(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupData_EnableOrientation(self.this,arg0)
|
||||
val = cmndlgsc.wxPageSetupDialogData_EnableOrientation(self.this,arg0)
|
||||
return val
|
||||
def EnablePaper(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupData_EnablePaper(self.this,arg0)
|
||||
val = cmndlgsc.wxPageSetupDialogData_EnablePaper(self.this,arg0)
|
||||
return val
|
||||
def EnablePrinter(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupData_EnablePrinter(self.this,arg0)
|
||||
val = cmndlgsc.wxPageSetupDialogData_EnablePrinter(self.this,arg0)
|
||||
return val
|
||||
def GetPaperSize(self):
|
||||
val = cmndlgsc.wxPageSetupData_GetPaperSize(self.this)
|
||||
val = wxPointPtr(val)
|
||||
val.thisown = 1
|
||||
def GetDefaultMinMargins(self):
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetDefaultMinMargins(self.this)
|
||||
return val
|
||||
def GetEnableMargins(self):
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetEnableMargins(self.this)
|
||||
return val
|
||||
def GetEnableOrientation(self):
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetEnableOrientation(self.this)
|
||||
return val
|
||||
def GetEnablePaper(self):
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetEnablePaper(self.this)
|
||||
return val
|
||||
def GetEnablePrinter(self):
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetEnablePrinter(self.this)
|
||||
return val
|
||||
def GetEnableHelp(self):
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetEnableHelp(self.this)
|
||||
return val
|
||||
def GetDefaultInfo(self):
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetDefaultInfo(self.this)
|
||||
return val
|
||||
def GetMarginTopLeft(self):
|
||||
val = cmndlgsc.wxPageSetupData_GetMarginTopLeft(self.this)
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetMarginTopLeft(self.this)
|
||||
val = wxPointPtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
def GetMarginBottomRight(self):
|
||||
val = cmndlgsc.wxPageSetupData_GetMarginBottomRight(self.this)
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetMarginBottomRight(self.this)
|
||||
val = wxPointPtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
def GetMinMarginTopLeft(self):
|
||||
val = cmndlgsc.wxPageSetupData_GetMinMarginTopLeft(self.this)
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetMinMarginTopLeft(self.this)
|
||||
val = wxPointPtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
def GetMinMarginBottomRight(self):
|
||||
val = cmndlgsc.wxPageSetupData_GetMinMarginBottomRight(self.this)
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetMinMarginBottomRight(self.this)
|
||||
val = wxPointPtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
def GetOrientation(self):
|
||||
val = cmndlgsc.wxPageSetupData_GetOrientation(self.this)
|
||||
def GetPaperId(self):
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetPaperId(self.this)
|
||||
return val
|
||||
def GetDefaultMinMargins(self):
|
||||
val = cmndlgsc.wxPageSetupData_GetDefaultMinMargins(self.this)
|
||||
def GetPaperSize(self):
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetPaperSize(self.this)
|
||||
val = wxSizePtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
def GetEnableMargins(self):
|
||||
val = cmndlgsc.wxPageSetupData_GetEnableMargins(self.this)
|
||||
return val
|
||||
def GetEnableOrientation(self):
|
||||
val = cmndlgsc.wxPageSetupData_GetEnableOrientation(self.this)
|
||||
return val
|
||||
def GetEnablePaper(self):
|
||||
val = cmndlgsc.wxPageSetupData_GetEnablePaper(self.this)
|
||||
return val
|
||||
def GetEnablePrinter(self):
|
||||
val = cmndlgsc.wxPageSetupData_GetEnablePrinter(self.this)
|
||||
return val
|
||||
def GetEnableHelp(self):
|
||||
val = cmndlgsc.wxPageSetupData_GetEnableHelp(self.this)
|
||||
return val
|
||||
def GetDefaultInfo(self):
|
||||
val = cmndlgsc.wxPageSetupData_GetDefaultInfo(self.this)
|
||||
return val
|
||||
def SetPaperSize(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupData_SetPaperSize(self.this,arg0.this)
|
||||
return val
|
||||
def SetMarginTopLeft(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupData_SetMarginTopLeft(self.this,arg0.this)
|
||||
return val
|
||||
def SetMarginBottomRight(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupData_SetMarginBottomRight(self.this,arg0.this)
|
||||
return val
|
||||
def SetMinMarginTopLeft(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupData_SetMinMarginTopLeft(self.this,arg0.this)
|
||||
return val
|
||||
def SetMinMarginBottomRight(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupData_SetMinMarginBottomRight(self.this,arg0.this)
|
||||
return val
|
||||
def SetOrientation(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupData_SetOrientation(self.this,arg0)
|
||||
return val
|
||||
def SetDefaultMinMargins(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupData_SetDefaultMinMargins(self.this,arg0)
|
||||
def GetPrintData(self):
|
||||
val = cmndlgsc.wxPageSetupDialogData_GetPrintData(self.this)
|
||||
val = wxPrintDataPtr(val)
|
||||
return val
|
||||
def SetDefaultInfo(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupData_SetDefaultInfo(self.this,arg0)
|
||||
val = cmndlgsc.wxPageSetupDialogData_SetDefaultInfo(self.this,arg0)
|
||||
return val
|
||||
def SetDefaultMinMargins(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupDialogData_SetDefaultMinMargins(self.this,arg0)
|
||||
return val
|
||||
def SetMarginTopLeft(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupDialogData_SetMarginTopLeft(self.this,arg0.this)
|
||||
return val
|
||||
def SetMarginBottomRight(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupDialogData_SetMarginBottomRight(self.this,arg0.this)
|
||||
return val
|
||||
def SetMinMarginTopLeft(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupDialogData_SetMinMarginTopLeft(self.this,arg0.this)
|
||||
return val
|
||||
def SetMinMarginBottomRight(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupDialogData_SetMinMarginBottomRight(self.this,arg0.this)
|
||||
return val
|
||||
def SetPaperId(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupDialogData_SetPaperId(self.this,arg0)
|
||||
return val
|
||||
def SetPaperSize(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupDialogData_SetPaperSize(self.this,arg0.this)
|
||||
return val
|
||||
def SetPrintData(self,arg0):
|
||||
val = cmndlgsc.wxPageSetupDialogData_SetPrintData(self.this,arg0.this)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPageSetupData instance>"
|
||||
class wxPageSetupData(wxPageSetupDataPtr):
|
||||
return "<C wxPageSetupDialogData instance>"
|
||||
class wxPageSetupDialogData(wxPageSetupDialogDataPtr):
|
||||
def __init__(self) :
|
||||
self.this = cmndlgsc.new_wxPageSetupData()
|
||||
self.this = cmndlgsc.new_wxPageSetupDialogData()
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
@@ -429,7 +436,7 @@ class wxPageSetupDialogPtr(wxDialogPtr):
|
||||
self.thisown = 0
|
||||
def GetPageSetupData(self):
|
||||
val = cmndlgsc.wxPageSetupDialog_GetPageSetupData(self.this)
|
||||
val = wxPageSetupDataPtr(val)
|
||||
val = wxPageSetupDialogDataPtr(val)
|
||||
return val
|
||||
def ShowModal(self):
|
||||
val = cmndlgsc.wxPageSetupDialog_ShowModal(self.this)
|
||||
@@ -449,81 +456,85 @@ class wxPageSetupDialog(wxPageSetupDialogPtr):
|
||||
|
||||
|
||||
|
||||
class wxPrintDataPtr :
|
||||
class wxPrintDialogDataPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self):
|
||||
if self.thisown == 1 :
|
||||
cmndlgsc.delete_wxPrintData(self.this)
|
||||
cmndlgsc.delete_wxPrintDialogData(self.this)
|
||||
def EnableHelp(self,arg0):
|
||||
val = cmndlgsc.wxPrintData_EnableHelp(self.this,arg0)
|
||||
val = cmndlgsc.wxPrintDialogData_EnableHelp(self.this,arg0)
|
||||
return val
|
||||
def EnablePageNumbers(self,arg0):
|
||||
val = cmndlgsc.wxPrintData_EnablePageNumbers(self.this,arg0)
|
||||
val = cmndlgsc.wxPrintDialogData_EnablePageNumbers(self.this,arg0)
|
||||
return val
|
||||
def EnablePrintToFile(self,arg0):
|
||||
val = cmndlgsc.wxPrintData_EnablePrintToFile(self.this,arg0)
|
||||
val = cmndlgsc.wxPrintDialogData_EnablePrintToFile(self.this,arg0)
|
||||
return val
|
||||
def EnableSelection(self,arg0):
|
||||
val = cmndlgsc.wxPrintData_EnableSelection(self.this,arg0)
|
||||
val = cmndlgsc.wxPrintDialogData_EnableSelection(self.this,arg0)
|
||||
return val
|
||||
def GetAllPages(self):
|
||||
val = cmndlgsc.wxPrintData_GetAllPages(self.this)
|
||||
val = cmndlgsc.wxPrintDialogData_GetAllPages(self.this)
|
||||
return val
|
||||
def GetCollate(self):
|
||||
val = cmndlgsc.wxPrintData_GetCollate(self.this)
|
||||
val = cmndlgsc.wxPrintDialogData_GetCollate(self.this)
|
||||
return val
|
||||
def GetFromPage(self):
|
||||
val = cmndlgsc.wxPrintData_GetFromPage(self.this)
|
||||
val = cmndlgsc.wxPrintDialogData_GetFromPage(self.this)
|
||||
return val
|
||||
def GetMaxPage(self):
|
||||
val = cmndlgsc.wxPrintData_GetMaxPage(self.this)
|
||||
val = cmndlgsc.wxPrintDialogData_GetMaxPage(self.this)
|
||||
return val
|
||||
def GetMinPage(self):
|
||||
val = cmndlgsc.wxPrintData_GetMinPage(self.this)
|
||||
val = cmndlgsc.wxPrintDialogData_GetMinPage(self.this)
|
||||
return val
|
||||
def GetNoCopies(self):
|
||||
val = cmndlgsc.wxPrintData_GetNoCopies(self.this)
|
||||
val = cmndlgsc.wxPrintDialogData_GetNoCopies(self.this)
|
||||
return val
|
||||
def GetOrientation(self):
|
||||
val = cmndlgsc.wxPrintData_GetOrientation(self.this)
|
||||
def GetPrintData(self):
|
||||
val = cmndlgsc.wxPrintDialogData_GetPrintData(self.this)
|
||||
val = wxPrintDataPtr(val)
|
||||
return val
|
||||
def GetPrintToFile(self):
|
||||
val = cmndlgsc.wxPrintDialogData_GetPrintToFile(self.this)
|
||||
return val
|
||||
def GetToPage(self):
|
||||
val = cmndlgsc.wxPrintData_GetToPage(self.this)
|
||||
val = cmndlgsc.wxPrintDialogData_GetToPage(self.this)
|
||||
return val
|
||||
def SetCollate(self,arg0):
|
||||
val = cmndlgsc.wxPrintData_SetCollate(self.this,arg0)
|
||||
val = cmndlgsc.wxPrintDialogData_SetCollate(self.this,arg0)
|
||||
return val
|
||||
def SetFromPage(self,arg0):
|
||||
val = cmndlgsc.wxPrintData_SetFromPage(self.this,arg0)
|
||||
val = cmndlgsc.wxPrintDialogData_SetFromPage(self.this,arg0)
|
||||
return val
|
||||
def SetMaxPage(self,arg0):
|
||||
val = cmndlgsc.wxPrintData_SetMaxPage(self.this,arg0)
|
||||
val = cmndlgsc.wxPrintDialogData_SetMaxPage(self.this,arg0)
|
||||
return val
|
||||
def SetMinPage(self,arg0):
|
||||
val = cmndlgsc.wxPrintData_SetMinPage(self.this,arg0)
|
||||
return val
|
||||
def SetOrientation(self,arg0):
|
||||
val = cmndlgsc.wxPrintData_SetOrientation(self.this,arg0)
|
||||
val = cmndlgsc.wxPrintDialogData_SetMinPage(self.this,arg0)
|
||||
return val
|
||||
def SetNoCopies(self,arg0):
|
||||
val = cmndlgsc.wxPrintData_SetNoCopies(self.this,arg0)
|
||||
val = cmndlgsc.wxPrintDialogData_SetNoCopies(self.this,arg0)
|
||||
return val
|
||||
def SetPrintData(self,arg0):
|
||||
val = cmndlgsc.wxPrintDialogData_SetPrintData(self.this,arg0.this)
|
||||
return val
|
||||
def SetPrintToFile(self,arg0):
|
||||
val = cmndlgsc.wxPrintData_SetPrintToFile(self.this,arg0)
|
||||
val = cmndlgsc.wxPrintDialogData_SetPrintToFile(self.this,arg0)
|
||||
return val
|
||||
def SetSetupDialog(self,arg0):
|
||||
val = cmndlgsc.wxPrintData_SetSetupDialog(self.this,arg0)
|
||||
val = cmndlgsc.wxPrintDialogData_SetSetupDialog(self.this,arg0)
|
||||
return val
|
||||
def SetToPage(self,arg0):
|
||||
val = cmndlgsc.wxPrintData_SetToPage(self.this,arg0)
|
||||
val = cmndlgsc.wxPrintDialogData_SetToPage(self.this,arg0)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPrintData instance>"
|
||||
class wxPrintData(wxPrintDataPtr):
|
||||
return "<C wxPrintDialogData instance>"
|
||||
class wxPrintDialogData(wxPrintDialogDataPtr):
|
||||
def __init__(self) :
|
||||
self.this = cmndlgsc.new_wxPrintData()
|
||||
self.this = cmndlgsc.new_wxPrintDialogData()
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
@@ -533,9 +544,9 @@ class wxPrintDialogPtr(wxDialogPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetPrintData(self):
|
||||
val = cmndlgsc.wxPrintDialog_GetPrintData(self.this)
|
||||
val = wxPrintDataPtr(val)
|
||||
def GetPrintDialogData(self):
|
||||
val = cmndlgsc.wxPrintDialog_GetPrintDialogData(self.this)
|
||||
val = wxPrintDialogDataPtr(val)
|
||||
return val
|
||||
def GetPrintDC(self):
|
||||
val = cmndlgsc.wxPrintDialog_GetPrintDC(self.this)
|
||||
|
||||
+1119
-351
File diff suppressed because it is too large
Load Diff
@@ -383,6 +383,9 @@ class wxListBoxPtr(wxControlPtr):
|
||||
def GetSelection(self):
|
||||
val = controlsc.wxListBox_GetSelection(self.this)
|
||||
return val
|
||||
def GetSelections(self):
|
||||
val = controlsc.wxListBox_GetSelections(self.this)
|
||||
return val
|
||||
def GetString(self,arg0):
|
||||
val = controlsc.wxListBox_GetString(self.this,arg0)
|
||||
return val
|
||||
@@ -536,6 +539,9 @@ class wxTextCtrlPtr(wxControlPtr):
|
||||
def WriteText(self,arg0):
|
||||
val = controlsc.wxTextCtrl_WriteText(self.this,arg0)
|
||||
return val
|
||||
def AppendText(self,arg0):
|
||||
val = controlsc.wxTextCtrl_AppendText(self.this,arg0)
|
||||
return val
|
||||
def XYToPosition(self,arg0,arg1):
|
||||
val = controlsc.wxTextCtrl_XYToPosition(self.this,arg0,arg1)
|
||||
return val
|
||||
|
||||
+1150
-396
File diff suppressed because it is too large
Load Diff
@@ -324,9 +324,12 @@ class wxTreeItemDataPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self):
|
||||
if self.thisown == 1 :
|
||||
controls2c.delete_wxTreeItemData(self.this)
|
||||
def GetData(self):
|
||||
val = controls2c.wxTreeItemData_GetData(self.this)
|
||||
return val
|
||||
def SetData(self,arg0):
|
||||
val = controls2c.wxTreeItemData_SetData(self.this,arg0)
|
||||
return val
|
||||
def GetId(self):
|
||||
val = controls2c.wxTreeItemData_GetId(self.this)
|
||||
val = wxTreeItemIdPtr(val)
|
||||
@@ -337,8 +340,8 @@ class wxTreeItemDataPtr :
|
||||
def __repr__(self):
|
||||
return "<C wxTreeItemData instance>"
|
||||
class wxTreeItemData(wxTreeItemDataPtr):
|
||||
def __init__(self) :
|
||||
self.this = controls2c.new_wxTreeItemData()
|
||||
def __init__(self,*args) :
|
||||
self.this = apply(controls2c.new_wxTreeItemData,()+args)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
@@ -414,10 +417,6 @@ class wxTreeCtrlPtr(wxControlPtr):
|
||||
def GetItemSelectedImage(self,arg0):
|
||||
val = controls2c.wxTreeCtrl_GetItemSelectedImage(self.this,arg0.this)
|
||||
return val
|
||||
def GetItemData(self,arg0):
|
||||
val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0.this)
|
||||
val = wxTreeItemDataPtr(val)
|
||||
return val
|
||||
def SetItemText(self,arg0,arg1):
|
||||
val = controls2c.wxTreeCtrl_SetItemText(self.this,arg0.this,arg1)
|
||||
return val
|
||||
@@ -427,11 +426,21 @@ class wxTreeCtrlPtr(wxControlPtr):
|
||||
def SetItemSelectedImage(self,arg0,arg1):
|
||||
val = controls2c.wxTreeCtrl_SetItemSelectedImage(self.this,arg0.this,arg1)
|
||||
return val
|
||||
def SetItemHasChildren(self,arg0,*args):
|
||||
val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self.this,arg0.this,)+args)
|
||||
return val
|
||||
def GetItemData(self,arg0):
|
||||
val = controls2c.wxTreeCtrl_GetItemData(self.this,arg0.this)
|
||||
val = wxTreeItemDataPtr(val)
|
||||
return val
|
||||
def SetItemData(self,arg0,arg1):
|
||||
val = controls2c.wxTreeCtrl_SetItemData(self.this,arg0.this,arg1.this)
|
||||
return val
|
||||
def SetItemHasChildren(self,arg0,*args):
|
||||
val = apply(controls2c.wxTreeCtrl_SetItemHasChildren,(self.this,arg0.this,)+args)
|
||||
def GetPyData(self,arg0):
|
||||
val = controls2c.wxTreeCtrl_GetPyData(self.this,arg0.this)
|
||||
return val
|
||||
def SetPyData(self,arg0,arg1):
|
||||
val = controls2c.wxTreeCtrl_SetPyData(self.this,arg0.this,arg1)
|
||||
return val
|
||||
def IsVisible(self,arg0):
|
||||
val = controls2c.wxTreeCtrl_IsVisible(self.this,arg0.this)
|
||||
|
||||
+725
-194
File diff suppressed because it is too large
Load Diff
@@ -605,6 +605,29 @@ class wxSysColourChangedEvent(wxSysColourChangedEventPtr):
|
||||
|
||||
|
||||
|
||||
class wxPyEventPtr(wxCommandEventPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self):
|
||||
if self.thisown == 1 :
|
||||
eventsc.delete_wxPyEvent(self.this)
|
||||
def SetUserData(self,arg0):
|
||||
val = eventsc.wxPyEvent_SetUserData(self.this,arg0)
|
||||
return val
|
||||
def GetUserData(self):
|
||||
val = eventsc.wxPyEvent_GetUserData(self.this)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxPyEvent instance>"
|
||||
class wxPyEvent(wxPyEventPtr):
|
||||
def __init__(self,*args) :
|
||||
self.this = apply(eventsc.new_wxPyEvent,()+args)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
@@ -162,7 +162,7 @@ static PyObject *_wrap_new_wxFrame(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg2 = new wxString(PyString_AsString(_obj2));
|
||||
_arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
|
||||
}
|
||||
if (_argc3) {
|
||||
if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) {
|
||||
@@ -176,8 +176,12 @@ static PyObject *_wrap_new_wxFrame(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (wxFrame *)new_wxFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxFrame *)new_wxFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
{
|
||||
if (_obj2)
|
||||
@@ -202,8 +206,12 @@ static PyObject *_wrap_wxFrame_Centre(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxFrame_Centre(_arg0,_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_Centre(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -214,7 +222,7 @@ static PyObject *_wrap_wxFrame_CreateStatusBar(PyObject *self, PyObject *args) {
|
||||
wxStatusBar * _result;
|
||||
wxFrame * _arg0;
|
||||
int _arg1 = 1;
|
||||
long _arg2 = wxST_SIZEGRIP;
|
||||
long _arg2 = (wxST_SIZEGRIP);
|
||||
wxWindowID _arg3 = -1;
|
||||
char * _arg4 = "statusBar";
|
||||
char * _argc0 = 0;
|
||||
@@ -229,8 +237,12 @@ static PyObject *_wrap_wxFrame_CreateStatusBar(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (wxStatusBar *)wxFrame_CreateStatusBar(_arg0,_arg1,_arg2,_arg3,_arg4);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxStatusBar *)wxFrame_CreateStatusBar(_arg0,_arg1,_arg2,_arg3,_arg4);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -255,8 +267,12 @@ static PyObject *_wrap_wxFrame_CreateToolBar(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (wxToolBar *)wxFrame_CreateToolBar(_arg0,_arg1,_arg2,_arg3);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxToolBar *)wxFrame_CreateToolBar(_arg0,_arg1,_arg2,_arg3);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -278,8 +294,12 @@ static PyObject *_wrap_wxFrame_GetMenuBar(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (wxMenuBar *)wxFrame_GetMenuBar(_arg0);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxMenuBar *)wxFrame_GetMenuBar(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -301,8 +321,12 @@ static PyObject *_wrap_wxFrame_GetStatusBar(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (wxStatusBar *)wxFrame_GetStatusBar(_arg0);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxStatusBar *)wxFrame_GetStatusBar(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -323,8 +347,12 @@ static PyObject *_wrap_wxFrame_GetTitle(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = new wxString (wxFrame_GetTitle(_arg0));
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxString (wxFrame_GetTitle(_arg0));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
}{
|
||||
_resultobj = PyString_FromString(WXSTRINGCAST *(_result));
|
||||
}
|
||||
{
|
||||
@@ -350,8 +378,12 @@ static PyObject *_wrap_wxFrame_GetToolBar(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (wxToolBar *)wxFrame_GetToolBar(_arg0);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxToolBar *)wxFrame_GetToolBar(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -374,8 +406,12 @@ static PyObject *_wrap_wxFrame_Iconize(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
wxFrame_Iconize(_arg0,_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_Iconize(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -396,8 +432,12 @@ static PyObject *_wrap_wxFrame_IsIconized(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (bool )wxFrame_IsIconized(_arg0);
|
||||
_resultobj = Py_BuildValue("i",_result);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxFrame_IsIconized(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
@@ -419,8 +459,12 @@ static PyObject *_wrap_wxFrame_Maximize(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
wxFrame_Maximize(_arg0,_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_Maximize(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -448,8 +492,12 @@ static PyObject *_wrap_wxFrame_SetAcceleratorTable(PyObject *self, PyObject *arg
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxFrame_SetAcceleratorTable(_arg0,*_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_SetAcceleratorTable(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -477,8 +525,12 @@ static PyObject *_wrap_wxFrame_SetIcon(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxFrame_SetIcon(_arg0,*_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_SetIcon(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -506,8 +558,12 @@ static PyObject *_wrap_wxFrame_SetMenuBar(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxFrame_SetMenuBar(_arg0,_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_SetMenuBar(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -535,8 +591,12 @@ static PyObject *_wrap_wxFrame_SetStatusBar(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxFrame_SetStatusBar(_arg0,_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_SetStatusBar(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -564,10 +624,14 @@ static PyObject *_wrap_wxFrame_SetStatusText(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
wxFrame_SetStatusText(_arg0,*_arg1,_arg2);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_SetStatusText(_arg0,*_arg1,_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
{
|
||||
if (_obj1)
|
||||
@@ -602,10 +666,19 @@ static PyObject *_wrap_wxFrame_SetStatusWidths(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
{
|
||||
_arg1 = PyList_Size(_obj2);
|
||||
if (_obj2) {
|
||||
_arg1 = PyList_Size(_obj2);
|
||||
}
|
||||
else {
|
||||
_arg1 = 0;
|
||||
}
|
||||
}
|
||||
wxFrame_SetStatusWidths(_arg0,_arg1,_arg2);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_SetStatusWidths(_arg0,_arg1,_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
{
|
||||
delete [] _arg2;
|
||||
@@ -635,10 +708,14 @@ static PyObject *_wrap_wxFrame_SetTitle(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg1 = new wxString(PyString_AsString(_obj1));
|
||||
_arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
|
||||
}
|
||||
wxFrame_SetTitle(_arg0,*_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_SetTitle(_arg0,*_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
{
|
||||
if (_obj1)
|
||||
@@ -670,8 +747,12 @@ static PyObject *_wrap_wxFrame_SetToolBar(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxFrame_SetToolBar(_arg0,_arg1);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxFrame_SetToolBar(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -731,7 +812,7 @@ static PyObject *_wrap_new_wxMiniFrame(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg2 = new wxString(PyString_AsString(_obj2));
|
||||
_arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
|
||||
}
|
||||
if (_argc3) {
|
||||
if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) {
|
||||
@@ -745,8 +826,12 @@ static PyObject *_wrap_new_wxMiniFrame(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (wxMiniFrame *)new_wxMiniFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMiniFrame_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxMiniFrame *)new_wxMiniFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMiniFrame_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
{
|
||||
if (_obj2)
|
||||
@@ -834,6 +919,7 @@ SWIGEXPORT(void,initframesc)() {
|
||||
SWIG_RegisterMapping("_wxPanel","_class_wxPanel",0);
|
||||
SWIG_RegisterMapping("_wxInitDialogEvent","_class_wxInitDialogEvent",0);
|
||||
SWIG_RegisterMapping("_wxCheckBox","_class_wxCheckBox",0);
|
||||
SWIG_RegisterMapping("_wxPyEvent","_class_wxPyEvent",0);
|
||||
SWIG_RegisterMapping("_wxTextCtrl","_class_wxTextCtrl",0);
|
||||
SWIG_RegisterMapping("_class_wxToolTip","_wxToolTip",0);
|
||||
SWIG_RegisterMapping("_class_wxMask","_wxMask",0);
|
||||
@@ -864,6 +950,7 @@ SWIGEXPORT(void,initframesc)() {
|
||||
SWIG_RegisterMapping("_wxSpinButton","_class_wxSpinButton",0);
|
||||
SWIG_RegisterMapping("_wxToolBarTool","_class_wxToolBarTool",0);
|
||||
SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0);
|
||||
SWIG_RegisterMapping("_class_wxPyEvent","_wxPyEvent",0);
|
||||
SWIG_RegisterMapping("_class_wxIconizeEvent","_wxIconizeEvent",0);
|
||||
SWIG_RegisterMapping("_class_wxStaticBitmap","_wxStaticBitmap",0);
|
||||
SWIG_RegisterMapping("_class_wxToolBar","_wxToolBar",0);
|
||||
|
||||
+1027
-346
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,226 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import imagec
|
||||
|
||||
from misc import *
|
||||
|
||||
from gdi import *
|
||||
class wxImageHandlerPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def GetName(self):
|
||||
val = imagec.wxImageHandler_GetName(self.this)
|
||||
return val
|
||||
def GetExtension(self):
|
||||
val = imagec.wxImageHandler_GetExtension(self.this)
|
||||
return val
|
||||
def GetType(self):
|
||||
val = imagec.wxImageHandler_GetType(self.this)
|
||||
return val
|
||||
def GetMimeType(self):
|
||||
val = imagec.wxImageHandler_GetMimeType(self.this)
|
||||
return val
|
||||
def SetName(self,arg0):
|
||||
val = imagec.wxImageHandler_SetName(self.this,arg0)
|
||||
return val
|
||||
def SetExtension(self,arg0):
|
||||
val = imagec.wxImageHandler_SetExtension(self.this,arg0)
|
||||
return val
|
||||
def SetType(self,arg0):
|
||||
val = imagec.wxImageHandler_SetType(self.this,arg0)
|
||||
return val
|
||||
def SetMimeType(self,arg0):
|
||||
val = imagec.wxImageHandler_SetMimeType(self.this,arg0)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxImageHandler instance>"
|
||||
class wxImageHandler(wxImageHandlerPtr):
|
||||
def __init__(self) :
|
||||
self.this = imagec.new_wxImageHandler()
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPNGHandlerPtr(wxImageHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxPNGHandler instance>"
|
||||
class wxPNGHandler(wxPNGHandlerPtr):
|
||||
def __init__(self) :
|
||||
self.this = imagec.new_wxPNGHandler()
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxJPEGHandlerPtr(wxImageHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxJPEGHandler instance>"
|
||||
class wxJPEGHandler(wxJPEGHandlerPtr):
|
||||
def __init__(self) :
|
||||
self.this = imagec.new_wxJPEGHandler()
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxBMPHandlerPtr(wxImageHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxBMPHandler instance>"
|
||||
class wxBMPHandler(wxBMPHandlerPtr):
|
||||
def __init__(self) :
|
||||
self.this = imagec.new_wxBMPHandler()
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxGIFHandlerPtr(wxImageHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __repr__(self):
|
||||
return "<C wxGIFHandler instance>"
|
||||
class wxGIFHandler(wxGIFHandlerPtr):
|
||||
def __init__(self) :
|
||||
self.this = imagec.new_wxGIFHandler()
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxImagePtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self):
|
||||
if self.thisown == 1 :
|
||||
imagec.delete_wxImage(self.this)
|
||||
def ConvertToBitmap(self):
|
||||
val = imagec.wxImage_ConvertToBitmap(self.this)
|
||||
val = wxBitmapPtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
def Create(self,arg0,arg1):
|
||||
val = imagec.wxImage_Create(self.this,arg0,arg1)
|
||||
return val
|
||||
def Destroy(self):
|
||||
val = imagec.wxImage_Destroy(self.this)
|
||||
return val
|
||||
def Scale(self,arg0,arg1):
|
||||
val = imagec.wxImage_Scale(self.this,arg0,arg1)
|
||||
val = wxImagePtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
def SetRGB(self,arg0,arg1,arg2,arg3,arg4):
|
||||
val = imagec.wxImage_SetRGB(self.this,arg0,arg1,arg2,arg3,arg4)
|
||||
return val
|
||||
def GetRed(self,arg0,arg1):
|
||||
val = imagec.wxImage_GetRed(self.this,arg0,arg1)
|
||||
return val
|
||||
def GetGreen(self,arg0,arg1):
|
||||
val = imagec.wxImage_GetGreen(self.this,arg0,arg1)
|
||||
return val
|
||||
def GetBlue(self,arg0,arg1):
|
||||
val = imagec.wxImage_GetBlue(self.this,arg0,arg1)
|
||||
return val
|
||||
def LoadFile(self,arg0,*args):
|
||||
val = apply(imagec.wxImage_LoadFile,(self.this,arg0,)+args)
|
||||
return val
|
||||
def LoadMimeFile(self,arg0,arg1):
|
||||
val = imagec.wxImage_LoadMimeFile(self.this,arg0,arg1)
|
||||
return val
|
||||
def SaveFile(self,arg0,arg1):
|
||||
val = imagec.wxImage_SaveFile(self.this,arg0,arg1)
|
||||
return val
|
||||
def SaveMimeFile(self,arg0,arg1):
|
||||
val = imagec.wxImage_SaveMimeFile(self.this,arg0,arg1)
|
||||
return val
|
||||
def Ok(self):
|
||||
val = imagec.wxImage_Ok(self.this)
|
||||
return val
|
||||
def GetWidth(self):
|
||||
val = imagec.wxImage_GetWidth(self.this)
|
||||
return val
|
||||
def GetHeight(self):
|
||||
val = imagec.wxImage_GetHeight(self.this)
|
||||
return val
|
||||
def GetData(self):
|
||||
val = imagec.wxImage_GetData(self.this)
|
||||
return val
|
||||
def SetData(self,arg0):
|
||||
val = imagec.wxImage_SetData(self.this,arg0)
|
||||
return val
|
||||
def SetMaskColour(self,arg0,arg1,arg2):
|
||||
val = imagec.wxImage_SetMaskColour(self.this,arg0,arg1,arg2)
|
||||
return val
|
||||
def GetMaskRed(self):
|
||||
val = imagec.wxImage_GetMaskRed(self.this)
|
||||
return val
|
||||
def GetMaskGreen(self):
|
||||
val = imagec.wxImage_GetMaskGreen(self.this)
|
||||
return val
|
||||
def GetMaskBlue(self):
|
||||
val = imagec.wxImage_GetMaskBlue(self.this)
|
||||
return val
|
||||
def SetMask(self,*args):
|
||||
val = apply(imagec.wxImage_SetMask,(self.this,)+args)
|
||||
return val
|
||||
def HasMask(self):
|
||||
val = imagec.wxImage_HasMask(self.this)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxImage instance>"
|
||||
class wxImage(wxImagePtr):
|
||||
def __init__(self,arg0,*args) :
|
||||
self.this = apply(imagec.new_wxImage,(arg0,)+args)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
def wxNullImage():
|
||||
val = imagec.wxNullImage()
|
||||
val = wxImagePtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxEmptyImage(arg0,arg1):
|
||||
val = imagec.wxEmptyImage(arg0,arg1)
|
||||
val = wxImagePtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxImageFromMime(arg0,arg1):
|
||||
val = imagec.wxImageFromMime(arg0,arg1)
|
||||
val = wxImagePtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxImageFromBitmap(arg0):
|
||||
val = imagec.wxImageFromBitmap(arg0.this)
|
||||
val = wxImagePtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
def wxImage_AddHandler(arg0):
|
||||
val = imagec.wxImage_AddHandler(arg0.this)
|
||||
return val
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
@@ -169,7 +169,7 @@ static PyObject *_wrap_new_wxMDIParentFrame(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg2 = new wxString(PyString_AsString(_obj2));
|
||||
_arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
|
||||
}
|
||||
if (_argc3) {
|
||||
if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) {
|
||||
@@ -183,8 +183,12 @@ static PyObject *_wrap_new_wxMDIParentFrame(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (wxMDIParentFrame *)new_wxMDIParentFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIParentFrame_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxMDIParentFrame *)new_wxMDIParentFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIParentFrame_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
{
|
||||
if (_obj2)
|
||||
@@ -208,8 +212,12 @@ static PyObject *_wrap_wxMDIParentFrame_ActivateNext(PyObject *self, PyObject *a
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxMDIParentFrame_ActivateNext(_arg0);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxMDIParentFrame_ActivateNext(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -229,8 +237,12 @@ static PyObject *_wrap_wxMDIParentFrame_ActivatePrevious(PyObject *self, PyObjec
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxMDIParentFrame_ActivatePrevious(_arg0);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxMDIParentFrame_ActivatePrevious(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -250,8 +262,12 @@ static PyObject *_wrap_wxMDIParentFrame_ArrangeIcons(PyObject *self, PyObject *a
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxMDIParentFrame_ArrangeIcons(_arg0);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxMDIParentFrame_ArrangeIcons(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -271,8 +287,12 @@ static PyObject *_wrap_wxMDIParentFrame_Cascade(PyObject *self, PyObject *args)
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxMDIParentFrame_Cascade(_arg0);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxMDIParentFrame_Cascade(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -294,8 +314,12 @@ static PyObject *_wrap_wxMDIParentFrame_GetActiveChild(PyObject *self, PyObject
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (wxMDIChildFrame *)wxMDIParentFrame_GetActiveChild(_arg0);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxMDIChildFrame *)wxMDIParentFrame_GetActiveChild(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -317,8 +341,12 @@ static PyObject *_wrap_wxMDIParentFrame_GetClientWindow(PyObject *self, PyObject
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (wxMDIClientWindow *)wxMDIParentFrame_GetClientWindow(_arg0);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxMDIClientWindow *)wxMDIParentFrame_GetClientWindow(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -340,8 +368,12 @@ static PyObject *_wrap_wxMDIParentFrame_GetToolBar(PyObject *self, PyObject *arg
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (wxWindow *)wxMDIParentFrame_GetToolBar(_arg0);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxWindow *)wxMDIParentFrame_GetToolBar(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -361,8 +393,12 @@ static PyObject *_wrap_wxMDIParentFrame_Tile(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxMDIParentFrame_Tile(_arg0);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxMDIParentFrame_Tile(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -422,7 +458,7 @@ static PyObject *_wrap_new_wxMDIChildFrame(PyObject *self, PyObject *args) {
|
||||
PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
|
||||
return NULL;
|
||||
}
|
||||
_arg2 = new wxString(PyString_AsString(_obj2));
|
||||
_arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
|
||||
}
|
||||
if (_argc3) {
|
||||
if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) {
|
||||
@@ -436,8 +472,12 @@ static PyObject *_wrap_new_wxMDIChildFrame(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (wxMDIChildFrame *)new_wxMDIChildFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxMDIChildFrame *)new_wxMDIChildFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
{
|
||||
if (_obj2)
|
||||
@@ -461,20 +501,26 @@ static PyObject *_wrap_wxMDIChildFrame_Activate(PyObject *self, PyObject *args)
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxMDIChildFrame_Activate(_arg0);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxMDIChildFrame_Activate(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxMDIChildFrame_Maximize(_swigobj) (_swigobj->Maximize())
|
||||
#define wxMDIChildFrame_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0))
|
||||
static PyObject *_wrap_wxMDIChildFrame_Maximize(PyObject *self, PyObject *args) {
|
||||
PyObject * _resultobj;
|
||||
wxMDIChildFrame * _arg0;
|
||||
bool _arg1;
|
||||
char * _argc0 = 0;
|
||||
int tempbool1;
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_Maximize",&_argc0))
|
||||
if(!PyArg_ParseTuple(args,"si:wxMDIChildFrame_Maximize",&_argc0,&tempbool1))
|
||||
return NULL;
|
||||
if (_argc0) {
|
||||
if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) {
|
||||
@@ -482,8 +528,13 @@ static PyObject *_wrap_wxMDIChildFrame_Maximize(PyObject *self, PyObject *args)
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxMDIChildFrame_Maximize(_arg0);
|
||||
Py_INCREF(Py_None);
|
||||
_arg1 = (bool ) tempbool1;
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxMDIChildFrame_Maximize(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -503,8 +554,12 @@ static PyObject *_wrap_wxMDIChildFrame_Restore(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
wxMDIChildFrame_Restore(_arg0);
|
||||
Py_INCREF(Py_None);
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxMDIChildFrame_Restore(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -543,8 +598,12 @@ static PyObject *_wrap_new_wxMDIClientWindow(PyObject *self, PyObject *args) {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
_result = (wxMDIClientWindow *)new_wxMDIClientWindow(_arg0,_arg1);
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (wxMDIClientWindow *)new_wxMDIClientWindow(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
return _resultobj;
|
||||
}
|
||||
@@ -624,6 +683,7 @@ SWIGEXPORT(void,initmdic)() {
|
||||
SWIG_RegisterMapping("_wxPanel","_class_wxPanel",0);
|
||||
SWIG_RegisterMapping("_wxInitDialogEvent","_class_wxInitDialogEvent",0);
|
||||
SWIG_RegisterMapping("_wxCheckBox","_class_wxCheckBox",0);
|
||||
SWIG_RegisterMapping("_wxPyEvent","_class_wxPyEvent",0);
|
||||
SWIG_RegisterMapping("_wxTextCtrl","_class_wxTextCtrl",0);
|
||||
SWIG_RegisterMapping("_class_wxToolTip","_wxToolTip",0);
|
||||
SWIG_RegisterMapping("_class_wxMask","_wxMask",0);
|
||||
@@ -654,6 +714,7 @@ SWIGEXPORT(void,initmdic)() {
|
||||
SWIG_RegisterMapping("_wxSpinButton","_class_wxSpinButton",0);
|
||||
SWIG_RegisterMapping("_wxToolBarTool","_class_wxToolBarTool",0);
|
||||
SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0);
|
||||
SWIG_RegisterMapping("_class_wxPyEvent","_wxPyEvent",0);
|
||||
SWIG_RegisterMapping("_class_wxIconizeEvent","_wxIconizeEvent",0);
|
||||
SWIG_RegisterMapping("_class_wxStaticBitmap","_wxStaticBitmap",0);
|
||||
SWIG_RegisterMapping("_wxMDIChildFrame","_class_wxMDIChildFrame",0);
|
||||
|
||||
@@ -70,8 +70,8 @@ class wxMDIChildFramePtr(wxFramePtr):
|
||||
def Activate(self):
|
||||
val = mdic.wxMDIChildFrame_Activate(self.this)
|
||||
return val
|
||||
def Maximize(self):
|
||||
val = mdic.wxMDIChildFrame_Maximize(self.this)
|
||||
def Maximize(self,arg0):
|
||||
val = mdic.wxMDIChildFrame_Maximize(self.this,arg0)
|
||||
return val
|
||||
def Restore(self):
|
||||
val = mdic.wxMDIChildFrame_Restore(self.this)
|
||||
|
||||
+910
-287
File diff suppressed because it is too large
Load Diff
@@ -561,6 +561,10 @@ def wxSetCursor(arg0):
|
||||
val = miscc.wxSetCursor(arg0.this)
|
||||
return val
|
||||
|
||||
wxNewId = miscc.wxNewId
|
||||
|
||||
wxRegisterId = miscc.wxRegisterId
|
||||
|
||||
NewId = miscc.NewId
|
||||
|
||||
RegisterId = miscc.RegisterId
|
||||
@@ -607,6 +611,8 @@ wxNow = miscc.wxNow
|
||||
|
||||
wxYield = miscc.wxYield
|
||||
|
||||
wxSafeYield = miscc.wxSafeYield
|
||||
|
||||
wxGetResource = miscc.wxGetResource
|
||||
|
||||
wxResourceAddIdentifier = miscc.wxResourceAddIdentifier
|
||||
|
||||
+335
-112
File diff suppressed because it is too large
Load Diff
+188
-138
File diff suppressed because it is too large
Load Diff
@@ -73,9 +73,6 @@ class wxConfigPtr :
|
||||
def ReadFloat(self,arg0,*args):
|
||||
val = apply(utilsc.wxConfig_ReadFloat,(self.this,arg0,)+args)
|
||||
return val
|
||||
def SetAppName(self,arg0):
|
||||
val = utilsc.wxConfig_SetAppName(self.this,arg0)
|
||||
return val
|
||||
def SetExpandEnvVars(self,*args):
|
||||
val = apply(utilsc.wxConfig_SetExpandEnvVars,(self.this,)+args)
|
||||
return val
|
||||
@@ -85,9 +82,6 @@ class wxConfigPtr :
|
||||
def SetRecordDefaults(self,*args):
|
||||
val = apply(utilsc.wxConfig_SetRecordDefaults,(self.this,)+args)
|
||||
return val
|
||||
def SetVendorName(self,arg0):
|
||||
val = utilsc.wxConfig_SetVendorName(self.this,arg0)
|
||||
return val
|
||||
def Write(self,arg0,arg1):
|
||||
val = utilsc.wxConfig_Write(self.this,arg0,arg1)
|
||||
return val
|
||||
|
||||
+985
-321
File diff suppressed because it is too large
Load Diff
@@ -16,6 +16,9 @@ class wxEvtHandlerPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def ProcessEvent(self,arg0):
|
||||
val = windowsc.wxEvtHandler_ProcessEvent(self.this,arg0.this)
|
||||
return val
|
||||
def Connect(self,arg0,arg1,arg2,arg3):
|
||||
val = windowsc.wxEvtHandler_Connect(self.this,arg0,arg1,arg2,arg3)
|
||||
return val
|
||||
@@ -309,6 +312,16 @@ class wxWindowPtr(wxEvtHandlerPtr):
|
||||
val = wxSizePtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
def DLG_PNT(self,arg0):
|
||||
val = windowsc.wxWindow_DLG_PNT(self.this,arg0.this)
|
||||
val = wxPointPtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
def DLG_SZE(self,arg0):
|
||||
val = windowsc.wxWindow_DLG_SZE(self.this,arg0.this)
|
||||
val = wxSizePtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
def ConvertPixelPointToDialog(self,arg0):
|
||||
val = windowsc.wxWindow_ConvertPixelPointToDialog(self.this,arg0.this)
|
||||
val = wxPointPtr(val)
|
||||
@@ -634,8 +647,9 @@ class wxMenuItemPtr :
|
||||
def __repr__(self):
|
||||
return "<C wxMenuItem instance>"
|
||||
class wxMenuItem(wxMenuItemPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
def __init__(self) :
|
||||
self.this = windowsc.new_wxMenuItem()
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
+844
-269
File diff suppressed because it is too large
Load Diff
@@ -155,6 +155,7 @@ class wxGridPtr(wxPanelPtr):
|
||||
def GetCurrentRect(self):
|
||||
val = windows2c.wxGrid_GetCurrentRect(self.this)
|
||||
val = wxRectPtr(val)
|
||||
val.thisown = 1
|
||||
return val
|
||||
def GetCursorColumn(self):
|
||||
val = windows2c.wxGrid_GetCursorColumn(self.this)
|
||||
@@ -420,6 +421,9 @@ class wxNotebookPtr(wxControlPtr):
|
||||
def DeletePage(self,arg0):
|
||||
val = windows2c.wxNotebook_DeletePage(self.this,arg0)
|
||||
return val
|
||||
def RemovePage(self,arg0):
|
||||
val = windows2c.wxNotebook_RemovePage(self.this,arg0)
|
||||
return val
|
||||
def DeleteAllPages(self):
|
||||
val = windows2c.wxNotebook_DeleteAllPages(self.this)
|
||||
return val
|
||||
@@ -429,6 +433,9 @@ class wxNotebookPtr(wxControlPtr):
|
||||
def GetPage(self,arg0):
|
||||
val = windows2c.wxNotebook_GetPage(self.this,arg0)
|
||||
return val
|
||||
def ResizeChildren(self):
|
||||
val = windows2c.wxNotebook_ResizeChildren(self.this)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxNotebook instance>"
|
||||
class wxNotebook(wxNotebookPtr):
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -255,6 +255,13 @@ class wxLayoutAlgorithmPtr :
|
||||
args = tuple(argl)
|
||||
val = apply(windows3c.wxLayoutAlgorithm_LayoutFrame,(self.this,arg0.this,)+args)
|
||||
return val
|
||||
def LayoutWindow(self,arg0,*args):
|
||||
argl = map(None,args)
|
||||
try: argl[0] = argl[0].this
|
||||
except: pass
|
||||
args = tuple(argl)
|
||||
val = apply(windows3c.wxLayoutAlgorithm_LayoutWindow,(self.this,arg0.this,)+args)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxLayoutAlgorithm instance>"
|
||||
class wxLayoutAlgorithm(wxLayoutAlgorithmPtr):
|
||||
|
||||
+214
-57
File diff suppressed because it is too large
Load Diff
+124
-35
@@ -25,7 +25,7 @@ from cmndlgs import *
|
||||
|
||||
from windows3 import *
|
||||
|
||||
from utils import *
|
||||
from image import *
|
||||
class wxPyAppPtr(wxEvtHandlerPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
@@ -197,6 +197,7 @@ wxSL_BOTH = wxc.wxSL_BOTH
|
||||
wxSL_SELRANGE = wxc.wxSL_SELRANGE
|
||||
wxSB_HORIZONTAL = wxc.wxSB_HORIZONTAL
|
||||
wxSB_VERTICAL = wxc.wxSB_VERTICAL
|
||||
wxST_SIZEGRIP = wxc.wxST_SIZEGRIP
|
||||
wxBU_AUTODRAW = wxc.wxBU_AUTODRAW
|
||||
wxBU_NOAUTODRAW = wxc.wxBU_NOAUTODRAW
|
||||
wxTR_HAS_BUTTONS = wxc.wxTR_HAS_BUTTONS
|
||||
@@ -226,10 +227,6 @@ wxSP_WRAP = wxc.wxSP_WRAP
|
||||
wxSP_NOBORDER = wxc.wxSP_NOBORDER
|
||||
wxSP_3D = wxc.wxSP_3D
|
||||
wxSP_BORDER = wxc.wxSP_BORDER
|
||||
wxTAB_MULTILINE = wxc.wxTAB_MULTILINE
|
||||
wxTAB_RIGHTJUSTIFY = wxc.wxTAB_RIGHTJUSTIFY
|
||||
wxTAB_FIXEDWIDTH = wxc.wxTAB_FIXEDWIDTH
|
||||
wxTAB_OWNERDRAW = wxc.wxTAB_OWNERDRAW
|
||||
wxFLOOD_SURFACE = wxc.wxFLOOD_SURFACE
|
||||
wxFLOOD_BORDER = wxc.wxFLOOD_BORDER
|
||||
wxODDEVEN_RULE = wxc.wxODDEVEN_RULE
|
||||
@@ -296,6 +293,7 @@ wxID_CANCEL = wxc.wxID_CANCEL
|
||||
wxID_APPLY = wxc.wxID_APPLY
|
||||
wxID_YES = wxc.wxID_YES
|
||||
wxID_NO = wxc.wxID_NO
|
||||
wxID_STATIC = wxc.wxID_STATIC
|
||||
wxBITMAP_TYPE_BMP = wxc.wxBITMAP_TYPE_BMP
|
||||
wxBITMAP_TYPE_BMP_RESOURCE = wxc.wxBITMAP_TYPE_BMP_RESOURCE
|
||||
wxBITMAP_TYPE_ICO = wxc.wxBITMAP_TYPE_ICO
|
||||
@@ -314,6 +312,7 @@ wxBITMAP_TYPE_PNG = wxc.wxBITMAP_TYPE_PNG
|
||||
wxBITMAP_TYPE_PNG_RESOURCE = wxc.wxBITMAP_TYPE_PNG_RESOURCE
|
||||
wxBITMAP_TYPE_ANY = wxc.wxBITMAP_TYPE_ANY
|
||||
wxBITMAP_TYPE_RESOURCE = wxc.wxBITMAP_TYPE_RESOURCE
|
||||
wxBITMAP_TYPE_JPEG = wxc.wxBITMAP_TYPE_JPEG
|
||||
wxOPEN = wxc.wxOPEN
|
||||
wxSAVE = wxc.wxSAVE
|
||||
wxHIDE_READONLY = wxc.wxHIDE_READONLY
|
||||
@@ -321,10 +320,6 @@ wxOVERWRITE_PROMPT = wxc.wxOVERWRITE_PROMPT
|
||||
wxACCEL_ALT = wxc.wxACCEL_ALT
|
||||
wxACCEL_CTRL = wxc.wxACCEL_CTRL
|
||||
wxACCEL_SHIFT = wxc.wxACCEL_SHIFT
|
||||
ERR_PARAM = wxc.ERR_PARAM
|
||||
ERR_NODATA = wxc.ERR_NODATA
|
||||
ERR_CANCEL = wxc.ERR_CANCEL
|
||||
ERR_SUCCESS = wxc.ERR_SUCCESS
|
||||
wxDEFAULT = wxc.wxDEFAULT
|
||||
wxDECORATIVE = wxc.wxDECORATIVE
|
||||
wxROMAN = wxc.wxROMAN
|
||||
@@ -478,6 +473,73 @@ wxCURSOR_SPRAYCAN = wxc.wxCURSOR_SPRAYCAN
|
||||
wxCURSOR_WAIT = wxc.wxCURSOR_WAIT
|
||||
wxCURSOR_WATCH = wxc.wxCURSOR_WATCH
|
||||
wxCURSOR_BLANK = wxc.wxCURSOR_BLANK
|
||||
wxPAPER_NONE = wxc.wxPAPER_NONE
|
||||
wxPAPER_LETTER = wxc.wxPAPER_LETTER
|
||||
wxPAPER_LEGAL = wxc.wxPAPER_LEGAL
|
||||
wxPAPER_A4 = wxc.wxPAPER_A4
|
||||
wxPAPER_CSHEET = wxc.wxPAPER_CSHEET
|
||||
wxPAPER_DSHEET = wxc.wxPAPER_DSHEET
|
||||
wxPAPER_ESHEET = wxc.wxPAPER_ESHEET
|
||||
wxPAPER_LETTERSMALL = wxc.wxPAPER_LETTERSMALL
|
||||
wxPAPER_TABLOID = wxc.wxPAPER_TABLOID
|
||||
wxPAPER_LEDGER = wxc.wxPAPER_LEDGER
|
||||
wxPAPER_STATEMENT = wxc.wxPAPER_STATEMENT
|
||||
wxPAPER_EXECUTIVE = wxc.wxPAPER_EXECUTIVE
|
||||
wxPAPER_A3 = wxc.wxPAPER_A3
|
||||
wxPAPER_A4SMALL = wxc.wxPAPER_A4SMALL
|
||||
wxPAPER_A5 = wxc.wxPAPER_A5
|
||||
wxPAPER_B4 = wxc.wxPAPER_B4
|
||||
wxPAPER_B5 = wxc.wxPAPER_B5
|
||||
wxPAPER_FOLIO = wxc.wxPAPER_FOLIO
|
||||
wxPAPER_QUARTO = wxc.wxPAPER_QUARTO
|
||||
wxPAPER_10X14 = wxc.wxPAPER_10X14
|
||||
wxPAPER_11X17 = wxc.wxPAPER_11X17
|
||||
wxPAPER_NOTE = wxc.wxPAPER_NOTE
|
||||
wxPAPER_ENV_9 = wxc.wxPAPER_ENV_9
|
||||
wxPAPER_ENV_10 = wxc.wxPAPER_ENV_10
|
||||
wxPAPER_ENV_11 = wxc.wxPAPER_ENV_11
|
||||
wxPAPER_ENV_12 = wxc.wxPAPER_ENV_12
|
||||
wxPAPER_ENV_14 = wxc.wxPAPER_ENV_14
|
||||
wxPAPER_ENV_DL = wxc.wxPAPER_ENV_DL
|
||||
wxPAPER_ENV_C5 = wxc.wxPAPER_ENV_C5
|
||||
wxPAPER_ENV_C3 = wxc.wxPAPER_ENV_C3
|
||||
wxPAPER_ENV_C4 = wxc.wxPAPER_ENV_C4
|
||||
wxPAPER_ENV_C6 = wxc.wxPAPER_ENV_C6
|
||||
wxPAPER_ENV_C65 = wxc.wxPAPER_ENV_C65
|
||||
wxPAPER_ENV_B4 = wxc.wxPAPER_ENV_B4
|
||||
wxPAPER_ENV_B5 = wxc.wxPAPER_ENV_B5
|
||||
wxPAPER_ENV_B6 = wxc.wxPAPER_ENV_B6
|
||||
wxPAPER_ENV_ITALY = wxc.wxPAPER_ENV_ITALY
|
||||
wxPAPER_ENV_MONARCH = wxc.wxPAPER_ENV_MONARCH
|
||||
wxPAPER_ENV_PERSONAL = wxc.wxPAPER_ENV_PERSONAL
|
||||
wxPAPER_FANFOLD_US = wxc.wxPAPER_FANFOLD_US
|
||||
wxPAPER_FANFOLD_STD_GERMAN = wxc.wxPAPER_FANFOLD_STD_GERMAN
|
||||
wxPAPER_FANFOLD_LGL_GERMAN = wxc.wxPAPER_FANFOLD_LGL_GERMAN
|
||||
wxPAPER_ISO_B4 = wxc.wxPAPER_ISO_B4
|
||||
wxPAPER_JAPANESE_POSTCARD = wxc.wxPAPER_JAPANESE_POSTCARD
|
||||
wxPAPER_9X11 = wxc.wxPAPER_9X11
|
||||
wxPAPER_10X11 = wxc.wxPAPER_10X11
|
||||
wxPAPER_15X11 = wxc.wxPAPER_15X11
|
||||
wxPAPER_ENV_INVITE = wxc.wxPAPER_ENV_INVITE
|
||||
wxPAPER_LETTER_EXTRA = wxc.wxPAPER_LETTER_EXTRA
|
||||
wxPAPER_LEGAL_EXTRA = wxc.wxPAPER_LEGAL_EXTRA
|
||||
wxPAPER_TABLOID_EXTRA = wxc.wxPAPER_TABLOID_EXTRA
|
||||
wxPAPER_A4_EXTRA = wxc.wxPAPER_A4_EXTRA
|
||||
wxPAPER_LETTER_TRANSVERSE = wxc.wxPAPER_LETTER_TRANSVERSE
|
||||
wxPAPER_A4_TRANSVERSE = wxc.wxPAPER_A4_TRANSVERSE
|
||||
wxPAPER_LETTER_EXTRA_TRANSVERSE = wxc.wxPAPER_LETTER_EXTRA_TRANSVERSE
|
||||
wxPAPER_A_PLUS = wxc.wxPAPER_A_PLUS
|
||||
wxPAPER_B_PLUS = wxc.wxPAPER_B_PLUS
|
||||
wxPAPER_LETTER_PLUS = wxc.wxPAPER_LETTER_PLUS
|
||||
wxPAPER_A4_PLUS = wxc.wxPAPER_A4_PLUS
|
||||
wxPAPER_A5_TRANSVERSE = wxc.wxPAPER_A5_TRANSVERSE
|
||||
wxPAPER_B5_TRANSVERSE = wxc.wxPAPER_B5_TRANSVERSE
|
||||
wxPAPER_A3_EXTRA = wxc.wxPAPER_A3_EXTRA
|
||||
wxPAPER_A5_EXTRA = wxc.wxPAPER_A5_EXTRA
|
||||
wxPAPER_B5_EXTRA = wxc.wxPAPER_B5_EXTRA
|
||||
wxPAPER_A2 = wxc.wxPAPER_A2
|
||||
wxPAPER_A3_TRANSVERSE = wxc.wxPAPER_A3_TRANSVERSE
|
||||
wxPAPER_A3_EXTRA_TRANSVERSE = wxc.wxPAPER_A3_EXTRA_TRANSVERSE
|
||||
FALSE = wxc.FALSE
|
||||
false = wxc.false
|
||||
TRUE = wxc.TRUE
|
||||
@@ -660,8 +722,9 @@ def _StdWindowCallbacks(win):
|
||||
_checkForCallback(win, "OnEraseBackground", wxEVT_ERASE_BACKGROUND)
|
||||
_checkForCallback(win, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED)
|
||||
_checkForCallback(win, "OnInitDialog", wxEVT_INIT_DIALOG)
|
||||
_checkForCallback(win, "OnIdle", wxEVT_IDLE)
|
||||
_checkForCallback(win, "OnPaint", wxEVT_PAINT)
|
||||
_checkForCallback(win, "OnIdle", wxEVT_IDLE)
|
||||
|
||||
|
||||
def _StdFrameCallbacks(win):
|
||||
_StdWindowCallbacks(win)
|
||||
@@ -679,7 +742,7 @@ def _StdDialogCallbacks(win):
|
||||
_checkForCallback(win, "OnCharHook", wxEVT_CHAR_HOOK)
|
||||
|
||||
|
||||
def _StdOnScrollCallback(win):
|
||||
def _StdOnScrollCallbacks(win):
|
||||
try: cb = getattr(win, "OnScroll")
|
||||
except: pass
|
||||
else: EVT_SCROLL(win, cb)
|
||||
@@ -758,6 +821,9 @@ def EVT_ICONIZE(win, func):
|
||||
def EVT_NAVIGATION_KEY(win, func):
|
||||
win.Connect(-1, -1, wxEVT_NAVIGATION_KEY, func)
|
||||
|
||||
def EVT_IDLE(win, func):
|
||||
win.Connect(-1, -1, wxEVT_IDLE, func)
|
||||
|
||||
|
||||
# Mouse Events
|
||||
def EVT_LEFT_DOWN(win, func):
|
||||
@@ -1184,27 +1250,32 @@ class wxAcceleratorTable(wxAcceleratorTablePtr):
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
## class wxPyStdOutWindow(wxFrame):
|
||||
## def __init__(self, title = "wxPython: stdout/stderr"):
|
||||
## wxFrame.__init__(self, NULL, title)
|
||||
## self.title = title
|
||||
## self.text = wxTextWindow(self)
|
||||
## self.text.SetFont(wxFont(10, wxMODERN, wxNORMAL, wxBOLD))
|
||||
## self.SetSize(-1,-1,400,200)
|
||||
## self.Show(false)
|
||||
## self.isShown = false
|
||||
## class wxPyStdOutWindow:
|
||||
## def __init__(self, title = "wxPython: stdout/stderr"):
|
||||
## self.frame = None
|
||||
## self.title = title
|
||||
|
||||
## def write(self, str): # with this method,
|
||||
## if not self.isShown:
|
||||
## self.Show(true)
|
||||
## self.isShown = true
|
||||
## self.text.WriteText(str)
|
||||
## def write(self, str):
|
||||
## if not self.frame:
|
||||
## self.frame = wxFrame(NULL, -1, self.title)
|
||||
## self.text = wxTextCtrl(self.frame, -1, "", wxPoint(0,0), wxDefaultSize,
|
||||
## wxTE_MULTILINE|wxTE_READONLY)
|
||||
## self.frame.SetSize(wxSize(450, 300))
|
||||
## self.frame.Show(true)
|
||||
## EVT_CLOSE(self.frame, self.OnCloseWindow)
|
||||
## self.text.AppendText(str)
|
||||
|
||||
## def OnCloseWindow(self, event): # doesn't allow the window to close, just hides it
|
||||
## self.Show(false)
|
||||
## self.isShown = false
|
||||
## def OnCloseWindow(self, event):
|
||||
## wxBell()
|
||||
## self.frame.Destroy()
|
||||
## self.frame = None
|
||||
## self.text = None
|
||||
|
||||
|
||||
## def close(self):
|
||||
## if self.frame:
|
||||
## self.frame.Close(true)
|
||||
|
||||
_defRedirect = (wxPlatform == '__WXMSW__')
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
@@ -1235,22 +1306,40 @@ class wxApp(wxPyApp):
|
||||
if filename:
|
||||
sys.stdout = sys.stderr = open(filename, 'a')
|
||||
else:
|
||||
raise self.error, 'wxPyStdOutWindow not yet implemented.'
|
||||
#self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow()
|
||||
#raise self.error, 'wxPyStdOutWindow not yet implemented.'
|
||||
self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow()
|
||||
|
||||
def RestoreStdio(self):
|
||||
sys.stdout, sys.stderr = self.saveStdio
|
||||
if self.stdioWin != None:
|
||||
self.stdioWin.Show(false)
|
||||
self.stdioWin.Destroy()
|
||||
self.stdioWin = None
|
||||
self.stdioWin.close()
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.8 1999/03/01 23:21:39 RD
|
||||
# Changes for allowing wxRA_SPECIFY_ROWS and wxRA_SPECIFY_COLS.
|
||||
# Revision 1.9 1999/05/01 04:41:08 RD
|
||||
# wxPython 2.0b9, second phase (gtk)
|
||||
# Added gobs of stuff, see wxPython/README.txt for details
|
||||
#
|
||||
# Revision 1.12 1999/04/30 03:29:18 RD
|
||||
#
|
||||
# wxPython 2.0b9, first phase (win32)
|
||||
# Added gobs of stuff, see wxPython/README.txt for details
|
||||
#
|
||||
# Revision 1.11.4.2 1999/03/28 06:35:01 RD
|
||||
#
|
||||
# wxPython 2.0b8
|
||||
# Python thread support
|
||||
# various minor additions
|
||||
# various minor fixes
|
||||
#
|
||||
# Revision 1.11.4.1 1999/03/27 23:29:13 RD
|
||||
#
|
||||
# wxPython 2.0b8
|
||||
# Python thread support
|
||||
# various minor additions
|
||||
# various minor fixes
|
||||
#
|
||||
# Revision 1.11 1999/02/20 09:02:55 RD
|
||||
# Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
|
||||
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
%pragma(python) addtomethod = "__init__:wx._StdFrameCallbacks(self)"
|
||||
|
||||
void Activate();
|
||||
void Maximize();
|
||||
void Maximize(bool maximize);
|
||||
void Restore();
|
||||
|
||||
};
|
||||
@@ -95,7 +95,12 @@ public:
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.7 1999/05/01 04:40:57 RD
|
||||
// wxPython 2.0b9, second phase (gtk)
|
||||
// Added gobs of stuff, see wxPython/README.txt for details
|
||||
//
|
||||
// Revision 1.6 1999/02/25 07:08:34 RD
|
||||
//
|
||||
// wxPython version 2.0b5
|
||||
//
|
||||
// Revision 1.5 1998/12/15 20:41:21 RD
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
%{
|
||||
#ifdef SEPARATE
|
||||
static wxString wxPyEmptyStr("");
|
||||
wxString wxPyEmptyStr("");
|
||||
#endif
|
||||
%}
|
||||
|
||||
@@ -131,7 +131,12 @@ public:
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.5 1999/05/01 04:40:57 RD
|
||||
// wxPython 2.0b9, second phase (gtk)
|
||||
// Added gobs of stuff, see wxPython/README.txt for details
|
||||
//
|
||||
// Revision 1.4 1999/04/30 03:29:19 RD
|
||||
//
|
||||
// wxPython 2.0b9, first phase (win32)
|
||||
// Added gobs of stuff, see wxPython/README.txt for details
|
||||
//
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
hh_test.py
|
||||
th_test.py
|
||||
Reference in New Issue
Block a user