merged 2.2 branch

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2000-07-15 19:51:35 +00:00
parent 8a693e6e04
commit f6bcfd974e
1835 changed files with 237729 additions and 67990 deletions
+41
View File
@@ -0,0 +1,41 @@
.emacs.desktop
Makefile
Makefile.pre
Setup
Setup.in.new
Setup.save
Setup.save
Setup.test
_make.bat
build.local
compile.py
config.c
glcanvas.h
glcanvasc.exp
libwxPyHelpers.2.1.so.16.0.0
make.bat
makefile.test
sedscript
templates
tests___Win32_Debug
transfer.zip
utilsc.exp
vc50.pdb
vc60.pdb
wx.py
wxPython.001
wxPython.dsp
wxPython.dsw
wxPython.ncb
wxPython.opt
wxc.exp
wxc.ilk
wxc.lib
wxc.pch
wxc.pyd
wxc.res
wxp.pch
wxpc.exp
wxpc.lib
wxpc.res
wxpc.res.save
+24
View File
@@ -0,0 +1,24 @@
#----------------------------------------------------------------------------
# Name: __init__.py
# Purpose: The presence of this file turns this directory into a
# Python package.
#
# Author: Robin Dunn
#
# Created: 8/8/98
# RCS-ID: $Id$
# Copyright: (c) 1998 by Total Control Software
# Licence: wxWindows license
#----------------------------------------------------------------------------
import __version__
__version__ = __version__.ver
# Ensure the main extension module is loaded, in case the add-on modules
# (such as utils,) are used standalone.
import wxc
wxc.__version__ = __version__
#----------------------------------------------------------------------------
+1
View File
@@ -0,0 +1 @@
ver = '2.1.16'
+4
View File
@@ -0,0 +1,4 @@
# Stuff these names into the wx namespace so wxPyConstructObject can find them
wx.wxCalendarEventPtr = wxCalendarEventPtr
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+19
View File
@@ -0,0 +1,19 @@
# Stuff these names into the wx namespace so wxPyConstructObject can find them
wx.wxGridEventPtr = wxGridEventPtr
wx.wxGridSizeEventPtr = wxGridSizeEventPtr
wx.wxGridRangeSelectEventPtr = wxGridRangeSelectEventPtr
wx.wxGridCellRendererPtr = wxGridCellRendererPtr
wx.wxPyGridCellRendererPtr = wxPyGridCellRendererPtr
wx.wxGridCellEditorPtr = wxGridCellEditorPtr
wx.wxPyGridCellEditorPtr = wxPyGridCellEditorPtr
wx.wxGridCellAttrPtr = wxGridCellAttrPtr
wx.wxGridCellAttrProviderPtr = wxGridCellAttrProviderPtr
wx.wxPyGridCellAttrProviderPtr = wxPyGridCellAttrProviderPtr
wx.wxGridTableBasePtr = wxGridTableBasePtr
wx.wxPyGridTableBasePtr = wxPyGridTableBasePtr
wx.wxGridTableMessagePtr = wxGridTableMessagePtr
wx.wxGridCellCoordsPtr = wxGridCellCoordsPtr
wx.wxGridPtr = wxGridPtr
+14
View File
@@ -0,0 +1,14 @@
# Stuff these names into the wx namespace so wxPyConstructObject can find them
import wx
wx.wxHtmlTagPtr = wxHtmlTagPtr
wx.wxHtmlParserPtr = wxHtmlParserPtr
wx.wxHtmlWinParserPtr = wxHtmlWinParserPtr
wx.wxHtmlTagHandlerPtr = wxHtmlTagHandlerPtr
wx.wxHtmlWinTagHandlerPtr = wxHtmlWinTagHandlerPtr
wx.wxHtmlCellPtr = wxHtmlCellPtr
wx.wxHtmlContainerCellPtr = wxHtmlContainerCellPtr
wx.wxHtmlWidgetCellPtr = wxHtmlWidgetCellPtr
wx.HtmlHistoryItemPtr = HtmlHistoryItemPtr
wx.wxHtmlWindowPtr = wxHtmlWindowPtr
wx.wxHtmlLinkInfoPtr = wxHtmlLinkInfoPtr
+153
View File
@@ -0,0 +1,153 @@
# -*- python -*-
import sys
MODULE = 'wxc'
SWIGFILES = ['wx.i', 'windows.i', 'windows2.i', 'windows3.i', 'events.i',
'misc.i', 'misc2.i', 'utils.i', 'gdi.i', 'mdi.i', 'controls.i',
'controls2.i', 'cmndlgs.i', 'stattool.i', 'frames.i',
'image.i', 'printfw.i', 'sizers.i', 'clip_dnd.i', 'grid.i',
'html.i', 'htmlhelp.i', 'calendar.i'
]
PYFILES = ['__init__.py', '__version__.py']
SWIGDEPS = '_defs.i my_typemaps.i'
OTHERDEPS = 'helpers.h'
if sys.platform == 'win32':
RESFILE = 1
SOURCES = ['helpers.cpp', 'libpy.c']
LIBS = '$(PYTHONLIB)'
OTHERRULES = """
dist:
cd ..
distrib\zipit.bat $(VERSION)
dbg:
cd ..\distrib
makedbg.bat $(VERSION)
dev:
cd ..\distrib
makedev.bat $(VERSION)
__version__.py: ../distrib/build.py build.cfg
echo ver = '$(VERSION)' > __version__.py
"""
else:
DEFAULTRULE = 'default: $(GENCODEDIR) helperlib $(TARGET) $(BUILDDIR)/$(TARGET) bldpycfiles'
OTHERINSTALLTARGETS = 'installLib installDemo installHelpers '
OTHERUNINSTALLTARGETS = 'uninstallLib uninstallDemo uninstallHelpers '
OTHERCFLAGS = '`gtk-config --cflags`'
OTHERRULES = """
HELPERLIBNAME = lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER).0.0
helperlib: $(HELPERLIBNAME)
$(HELPERLIBNAME) : helpers.o libpy.o
$(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
ln -s $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER)
ln -s $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO)
ln -s $(HELPERLIBNAME) lib$(HELPERLIB)$(SO)
installHelpers: $(HELPERLIBDIR)/$(HELPERLIBNAME)
$(HELPERLIBDIR)/$(HELPERLIBNAME) : $(HELPERLIBNAME)
cp $(HELPERLIBNAME) $(HELPERLIBDIR)
cd $(HELPERLIBDIR); \
ln -sf $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER); \
ln -sf $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO); \
ln -sf $(HELPERLIBNAME) lib$(HELPERLIB)$(SO)
@echo ---------------------------------------------------------
@echo You may have to run ldconfig, or set an environment
@echo variable in order for $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
@echo to be found at runtime. See your man pages for ld.so or
@echo equivalent.
@echo ---------------------------------------------------------
installLib:
mkdir $(TARGETDIR)/lib; \\
mkdir $(TARGETDIR)/lib/sizers; \\
mkdir $(TARGETDIR)/lib/editor; \\
cp ../wxPython/lib/*.py $(TARGETDIR)/lib; \\
cp ../wxPython/lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\
cp ../wxPython/lib/editor/*.py $(TARGETDIR)/lib/editor; \\
cp ../wxPython/lib/*.txt $(TARGETDIR)/lib; \\
cp ../wxPython/lib/sizers/*.txt $(TARGETDIR)/lib/sizers;\\
cp ../wxPython/lib/editor/*.txt $(TARGETDIR)/lib/editor;\\
$(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
$(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR);
installDemo:
mkdir $(TARGETDIR)/demo; \\
mkdir $(TARGETDIR)/demo/bitmaps; \\
mkdir $(TARGETDIR)/demo/data; \\
cp ../demo/*.py $(TARGETDIR)/demo; \\
cp ../demo/*.xml $(TARGETDIR)/demo; \\
cp ../demo/*.txt $(TARGETDIR)/demo; \\
cp ../demo/bitmaps/*.bmp $(TARGETDIR)/demo/bitmaps; \\
cp ../demo/bitmaps/*.ico $(TARGETDIR)/demo/bitmaps; \\
cp ../demo/bitmaps/*.gif $(TARGETDIR)/demo/bitmaps; \\
cp ../demo/bitmaps/*.png $(TARGETDIR)/demo/bitmaps; \\
cp ../demo/bitmaps/*.jpg $(TARGETDIR)/demo/bitmaps; \\
cp ../demo/data/*.png $(TARGETDIR)/demo/data; \\
cp ../demo/data/*.htm $(TARGETDIR)/demo/data; \\
cp ../demo/data/*.bmp $(TARGETDIR)/demo/data; \\
cp ../demo/data/*.txt $(TARGETDIR)/demo/data; \\
cp ../demo/data/*.i $(TARGETDIR)/demo/data; \\
cp ../demo/data/*.h $(TARGETDIR)/demo/data; \\
echo "(1,0)" > $(TARGETDIR)/demo/data/showTips; \\
chmod 666 $(TARGETDIR)/demo/data/showTips; \\
$(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR)/demo;\\
$(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR)/demo;
uninstallLib:
rm -rf $(TARGETDIR)/lib;
uninstallDemo:
rm -rf $(TARGETDIR)/demo;
uninstallHelpers:
rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
rm -f $(HELPERLIBDIR)/$(HELPERLIBNAME)
rm -f $(HELPERLIBDIR)/lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER)
rm -f $(HELPERLIBDIR)/lib$(HELPERLIB).$(MAJVER)$(SO)
rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
__version__.py: ../distrib/build.py build.cfg
echo ver = \\'$(VERSION)\\' > __version__.py
#----------------------------------------------------------------------
dist: tgz rpm
tgz:
cd ..; distrib/maketgz $(VERSION)
rpm:
cd ../distrib; ./makerpm $(VERSION)
"""
OTHERRULES = OTHERRULES + """
$(GENCODEDIR)/wx.py : _extras.py
$(GENCODEDIR)/grid.py : _gridextras.py
$(GENCODEDIR)/html.py : _htmlextras.py
$(GENCODEDIR)/calendar.py : _calextras.py
"""
+231
View File
@@ -0,0 +1,231 @@
/////////////////////////////////////////////////////////////////////////////
// Name: calendar.i
// Purpose: SWIG definitions for the wxCalendarCtrl
//
// Author: Robin Dunn
//
// Created: 23-May-2000
// RCS-ID: $Id$
// Copyright: (c) 2000 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module calendar
%{
#include "helpers.h"
#include <wx/calctrl.h>
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import windows.i
%import controls.i
%import events.i
%import utils.i
%pragma(python) code = "import wx"
//---------------------------------------------------------------------------
enum {
wxCAL_SUNDAY_FIRST,
wxCAL_MONDAY_FIRST,
wxCAL_SHOW_HOLIDAYS,
wxCAL_NO_YEAR_CHANGE,
wxCAL_NO_MONTH_CHANGE,
};
enum wxCalendarHitTestResult
{
wxCAL_HITTEST_NOWHERE, // outside of anything
wxCAL_HITTEST_HEADER, // on the header (weekdays)
wxCAL_HITTEST_DAY // on a day in the calendar
};
// border types for a date
enum wxCalendarDateBorder
{
wxCAL_BORDER_NONE, // no border (default)
wxCAL_BORDER_SQUARE, // a rectangular border
wxCAL_BORDER_ROUND // a round border
};
//---------------------------------------------------------------------------
class wxCalendarDateAttr
{
public:
// ctors
wxCalendarDateAttr(const wxColour& colText,
const wxColour& colBack = wxNullColour,
const wxColour& colBorder = wxNullColour,
const wxFont& font = wxNullFont,
wxCalendarDateBorder border = wxCAL_BORDER_NONE);
%name(wxCalendarDateAttrBorder)
wxCalendarDateAttr(wxCalendarDateBorder border,
const wxColour& colBorder = wxNullColour);
// setters
void SetTextColour(const wxColour& colText);
void SetBackgroundColour(const wxColour& colBack);
void SetBorderColour(const wxColour& col);
void SetFont(const wxFont& font);
void SetBorder(wxCalendarDateBorder border);
void SetHoliday(bool holiday);
// accessors
bool HasTextColour() const;
bool HasBackgroundColour() const;
bool HasBorderColour() const;
bool HasFont() const;
bool HasBorder() const;
bool IsHoliday() const;
const wxColour& GetTextColour() const;
const wxColour& GetBackgroundColour() const;
const wxColour& GetBorderColour() const;
const wxFont& GetFont() const;
wxCalendarDateBorder GetBorder() const;
};
//---------------------------------------------------------------------------
class wxCalendarCtrl;
class wxCalendarEvent : public wxCommandEvent
{
public:
wxCalendarEvent(wxCalendarCtrl *cal, wxEventType type);
const wxDateTime& GetDate() const;
wxDateTime::WeekDay GetWeekDay() const;
};
enum {
wxEVT_CALENDAR_DOUBLECLICKED,
wxEVT_CALENDAR_SEL_CHANGED,
wxEVT_CALENDAR_DAY_CHANGED,
wxEVT_CALENDAR_MONTH_CHANGED,
wxEVT_CALENDAR_YEAR_CHANGED,
wxEVT_CALENDAR_WEEKDAY_CLICKED,
};
%pragma(python) code = "
def EVT_CALENDAR(win, id, fn):
win.Connect(id, -1, wxEVT_CALENDAR_DOUBLECLICKED, fn)
def EVT_CALENDAR_SEL_CHANGED(win, id, fn):
win.Connect(id, -1, wxEVT_CALENDAR_SEL_CHANGED, fn)
def EVT_CALENDAR_DAY(win, id, fn):
win.Connect(id, -1, wxEVT_CALENDAR_DAY_CHANGED, fn)
def EVT_CALENDAR_MONTH(win, id, fn):
win.Connect(id, -1, wxEVT_CALENDAR_MONTH_CHANGED, fn)
def EVT_CALENDAR_YEAR(win, id, fn):
win.Connect(id, -1, wxEVT_CALENDAR_YEAR_CHANGED, fn)
def EVT_CALENDAR_WEEKDAY_CLICKED(win, id, fn):
win.Connect(id, -1, wxEVT_CALENDAR_WEEKDAY_CLICKED, fn)
"
//---------------------------------------------------------------------------
class wxCalendarCtrl : public wxControl
{
public:
// construction
wxCalendarCtrl(wxWindow *parent,
wxWindowID id,
const wxDateTime& date = wxDefaultDateTime,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxCAL_SHOW_HOLIDAYS,
const char* name = "calendar");
// set/get the current date
// ------------------------
void SetDate(const wxDateTime& date);
const wxDateTime& GetDate() const;
// calendar mode
// -------------
// some calendar styles can't be changed after the control creation by
// just using SetWindowStyle() and Refresh() and the functions below
// should be used instead for them
// corresponds to wxCAL_NO_YEAR_CHANGE bit
void EnableYearChange(bool enable = TRUE);
// corresponds to wxCAL_NO_MONTH_CHANGE bit
void EnableMonthChange(bool enable = TRUE);
// corresponds to wxCAL_SHOW_HOLIDAYS bit
void EnableHolidayDisplay(bool display = TRUE);
// customization
// -------------
// header colours are used for painting the weekdays at the top
void SetHeaderColours(const wxColour& colFg, const wxColour& colBg);
const wxColour& GetHeaderColourFg() const;
const wxColour& GetHeaderColourBg() const;
// highlight colour is used for the currently selected date
void SetHighlightColours(const wxColour& colFg, const wxColour& colBg);
const wxColour& GetHighlightColourFg() const;
const wxColour& GetHighlightColourBg() const;
// holiday colour is used for the holidays (if style & wxCAL_SHOW_HOLIDAYS)
void SetHolidayColours(const wxColour& colFg, const wxColour& colBg);
const wxColour& GetHolidayColourFg() const;
const wxColour& GetHolidayColourBg() const;
// an item without custom attributes is drawn with the default colours and
// font and without border, setting custom attributes allows to modify this
//
// the day parameter should be in 1..31 range, for days 29, 30, 31 the
// corresponding attribute is just unused if there is no such day in the
// current month
wxCalendarDateAttr *GetAttr(size_t day) const;
void SetAttr(size_t day, wxCalendarDateAttr *attr);
void SetHoliday(size_t day);
void ResetAttr(size_t day);
// returns one of wxCAL_HITTEST_XXX constants and fills either date or wd
// with the corresponding value (none for NOWHERE, the date for DAY and wd
// for HEADER)
wxCalendarHitTestResult HitTest(const wxPoint& pos,
wxDateTime *date = NULL,
wxDateTime::WeekDay *wd = NULL);
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
%pragma(python) include="_calextras.py";
//---------------------------------------------------------------------------
File diff suppressed because it is too large Load Diff
+256
View File
@@ -0,0 +1,256 @@
/////////////////////////////////////////////////////////////////////////////
// Name: cmndlgs.i
// Purpose: SWIG definitions for the Common Dialog Classes
//
// Author: Robin Dunn
//
// Created: 7/25/98
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module cmndlgs
%{
#include "helpers.h"
#include <wx/colordlg.h>
#include <wx/dirdlg.h>
#include <wx/fontdlg.h>
#include <wx/progdlg.h>
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import gdi.i
%import windows.i
%import frames.i
%pragma(python) code = "import wx"
//----------------------------------------------------------------------
class wxColourData {
public:
wxColourData();
~wxColourData();
bool GetChooseFull();
wxColour& GetColour();
wxColour GetCustomColour(int i);
void SetChooseFull(int flag);
void SetColour(const wxColour& colour);
void SetCustomColour(int i, const wxColour& colour);
};
class wxColourDialog : public wxDialog {
public:
wxColourDialog(wxWindow* parent, wxColourData* data = NULL);
%pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
wxColourData& GetColourData();
int ShowModal();
};
//----------------------------------------------------------------------
class wxDirDialog : public wxDialog {
public:
wxDirDialog(wxWindow* parent,
char* message = "Choose a directory",
char* defaultPath = "",
long style = 0,
const wxPoint& pos = wxPyDefaultPosition);
%pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
wxString GetPath();
wxString GetMessage();
long GetStyle();
void SetMessage(const wxString& message);
void SetPath(const wxString& path);
int ShowModal();
};
//----------------------------------------------------------------------
class wxFileDialog : public wxDialog {
public:
wxFileDialog(wxWindow* parent,
char* message = "Choose a file",
char* defaultDir = "",
char* defaultFile = "",
char* wildcard = "*.*",
long style = 0,
const wxPoint& pos = wxPyDefaultPosition);
%pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
wxString GetDirectory();
wxString GetFilename();
int GetFilterIndex();
wxString GetMessage();
wxString GetPath();
long GetStyle();
wxString GetWildcard();
void SetDirectory(const wxString& directory);
void SetFilename(const wxString& setfilename);
void SetFilterIndex(int filterIndex);
void SetMessage(const wxString& message);
void SetPath(const wxString& path);
void SetStyle(long style);
void SetWildcard(const wxString& wildCard);
int ShowModal();
%addmethods {
PyObject* GetFilenames() {
wxArrayString arr;
self->GetFilenames(arr);
size_t count = arr.GetCount();
PyObject* listObj = PyList_New(0);
for(size_t x=0; x<count; x++) {
PyObject* name = PyString_FromString(arr[x]);
PyList_Append(listObj, name);
}
return listObj;
}
PyObject* GetPaths() {
wxArrayString arr;
self->GetPaths(arr);
size_t count = arr.GetCount();
PyObject* listObj = PyList_New(0);
for(size_t x=0; x<count; x++) {
PyObject* name = PyString_FromString(arr[x]);
PyList_Append(listObj, name);
}
return listObj;
}
}
};
//----------------------------------------------------------------------
//TODO: wxMultipleChoiceDialog
//----------------------------------------------------------------------
class wxSingleChoiceDialog : public wxDialog {
public:
%addmethods {
// TODO: ignoring clientData for now...
// SWIG is messing up the &/*'s for some reason.
wxSingleChoiceDialog(wxWindow* parent,
wxString* message,
wxString* caption,
int LCOUNT, wxString* choices,
//char** clientData = NULL,
long style = wxOK | wxCANCEL | wxCENTRE,
wxPoint* pos = &wxPyDefaultPosition) {
return new wxSingleChoiceDialog(parent, *message, *caption,
LCOUNT, choices, NULL, style, *pos);
}
}
%pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
int GetSelection();
wxString GetStringSelection();
void SetSelection(int sel);
int ShowModal();
};
//----------------------------------------------------------------------
class wxTextEntryDialog : public wxDialog {
public:
wxTextEntryDialog(wxWindow* parent,
char* message,
char* caption = "Input Text",
char* defaultValue = "",
long style = wxOK | wxCANCEL | wxCENTRE,
const wxPoint& pos = wxPyDefaultPosition);
%pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
wxString GetValue();
void SetValue(const wxString& value);
int ShowModal();
};
//----------------------------------------------------------------------
class wxFontData {
public:
wxFontData();
~wxFontData();
void EnableEffects(bool enable);
bool GetAllowSymbols();
wxColour& GetColour();
wxFont GetChosenFont();
bool GetEnableEffects();
wxFont GetInitialFont();
bool GetShowHelp();
void SetAllowSymbols(bool allowSymbols);
void SetChosenFont(const wxFont& font);
void SetColour(const wxColour& colour);
void SetInitialFont(const wxFont& font);
void SetRange(int min, int max);
void SetShowHelp(bool showHelp);
};
class wxFontDialog : public wxDialog {
public:
wxFontDialog(wxWindow* parent, wxFontData* data);
%pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
wxFontData& GetFontData();
int ShowModal();
};
//----------------------------------------------------------------------
class wxMessageDialog : public wxDialog {
public:
wxMessageDialog(wxWindow* parent,
char* message,
char* caption = "Message box",
long style = wxOK | wxCANCEL | wxCENTRE,
const wxPoint& pos = wxPyDefaultPosition);
%pragma(python) addtomethod = "__init__:#wx._StdDialogCallbacks(self)"
int ShowModal();
};
//----------------------------------------------------------------------
class wxProgressDialog : public wxFrame {
public:
wxProgressDialog(const wxString& title,
const wxString& message,
int maximum = 100,
wxWindow* parent = NULL,
int style = wxPD_AUTO_HIDE | wxPD_APP_MODAL );
bool Update(int value = -1, const char* newmsg = NULL);
void Resume();
}
//----------------------------------------------------------------------
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+453
View File
@@ -0,0 +1,453 @@
/////////////////////////////////////////////////////////////////////////////
// Name: events.i
// Purpose: SWIGgable Event classes for wxPython
//
// Author: Robin Dunn
//
// Created: 5/24/98
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module events
%{
#include "helpers.h"
#include <wx/spinbutt.h>
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import gdi.i
//---------------------------------------------------------------------------
class wxEvent {
public:
wxEvent(int id = 0);
~wxEvent();
wxObject* GetEventObject();
wxEventType GetEventType();
int GetId();
bool GetSkipped();
long GetTimestamp();
void SetEventObject(wxObject* object);
void SetEventType(wxEventType typ);
void SetId(int id);
void SetTimestamp(long timeStamp);
void Skip(bool skip = TRUE);
};
//---------------------------------------------------------------------------
class wxSizeEvent : public wxEvent {
public:
wxSizeEvent(const wxSize& sz, int id = 0);
wxSize GetSize();
};
//---------------------------------------------------------------------------
class wxCloseEvent : public wxEvent {
public:
wxCloseEvent(int commandEventType = 0, int id = 0);
void SetLoggingOff(bool loggingOff);
bool GetLoggingOff();
void Veto(bool veto = TRUE);
bool CanVeto();
bool GetVeto();
void SetCanVeto(bool canVeto);
};
//---------------------------------------------------------------------------
class wxCommandEvent : public wxEvent {
public:
wxCommandEvent(int commandEventType = 0, int id = 0);
bool Checked();
long GetExtraLong();
int GetInt();
int GetSelection();
wxString GetString();
bool IsSelection();
void SetString(const wxString& s);
void SetExtraLong(long extraLong);
void SetInt(int i);
};
//---------------------------------------------------------------------------
class wxScrollEvent: public wxCommandEvent {
public:
wxScrollEvent(int commandType = 0, int id = 0, int pos = 0,
int orientation = 0);
int GetOrientation();
int GetPosition();
};
//---------------------------------------------------------------------------
class wxScrollWinEvent: public wxEvent {
public:
wxScrollWinEvent(int commandType = 0, int pos = 0,
int orientation = 0);
int GetOrientation();
int GetPosition();
};
//---------------------------------------------------------------------------
class wxSpinEvent : public wxScrollEvent {
public:
wxSpinEvent(int commandType = 0, int id = 0);
};
//---------------------------------------------------------------------------
class wxMouseEvent: public wxEvent {
public:
wxMouseEvent(int mouseEventType = 0);
bool IsButton();
bool ButtonDown(int but = -1);
bool ButtonDClick(int but = -1);
bool ButtonUp(int but = -1);
bool Button(int but);
bool ButtonIsDown(int but);
bool ControlDown();
bool MetaDown();
bool AltDown();
bool ShiftDown();
bool LeftDown();
bool MiddleDown();
bool RightDown();
bool LeftUp();
bool MiddleUp();
bool RightUp();
bool LeftDClick();
bool MiddleDClick();
bool RightDClick();
bool LeftIsDown();
bool MiddleIsDown();
bool RightIsDown();
bool Dragging();
bool Moving();
bool Entering();
bool Leaving();
wxPoint GetPosition();
%name(GetPositionTuple)void GetPosition(long *OUTPUT, long *OUTPUT);
wxPoint GetLogicalPosition(const wxDC& dc);
long GetX();
long GetY();
};
//---------------------------------------------------------------------------
class wxKeyEvent: public wxEvent {
public:
wxKeyEvent(int keyEventType);
bool ControlDown();
bool MetaDown();
bool AltDown();
bool ShiftDown();
long KeyCode();
long GetKeyCode();
bool HasModifiers();
long GetX();
long GetY();
wxPoint GetPosition();
%name(GetPositionTuple) void GetPosition(long* OUTPUT, long* OUTPUT);
};
//---------------------------------------------------------------------------
class wxNavigationKeyEvent : public wxEvent {
public:
wxNavigationKeyEvent();
bool GetDirection();
void SetDirection(bool bForward);
bool IsWindowChange();
void SetWindowChange(bool bIs);
wxWindow* GetCurrentFocus();
void SetCurrentFocus(wxWindow *win);
};
//---------------------------------------------------------------------------
class wxMoveEvent: public wxEvent {
public:
wxMoveEvent(const wxPoint& pt, int id = 0);
wxPoint GetPosition();
};
//---------------------------------------------------------------------------
class wxPaintEvent: public wxEvent {
public:
wxPaintEvent(int id = 0);
};
//---------------------------------------------------------------------------
class wxEraseEvent: public wxEvent {
public:
wxEraseEvent(int id = 0, wxDC* dc = NULL);
wxDC *GetDC();
};
//---------------------------------------------------------------------------
class wxFocusEvent: public wxEvent {
public:
wxFocusEvent(WXTYPE eventType = 0, int id = 0);
};
//---------------------------------------------------------------------------
class wxActivateEvent: public wxEvent{
public:
wxActivateEvent(WXTYPE eventType = 0, int active = TRUE, int id = 0);
bool GetActive();
};
//---------------------------------------------------------------------------
class wxInitDialogEvent: public wxEvent {
public:
wxInitDialogEvent(int id = 0);
};
//---------------------------------------------------------------------------
class wxMenuEvent: public wxEvent {
public:
wxMenuEvent(WXTYPE id = 0, int id = 0);
int GetMenuId();
};
//---------------------------------------------------------------------------
class wxShowEvent: public wxEvent {
public:
wxShowEvent(int id = 0, int show = FALSE);
void SetShow(bool show);
bool GetShow();
};
//---------------------------------------------------------------------------
class wxIconizeEvent: public wxEvent {
public:
wxIconizeEvent(int id = 0);
};
//---------------------------------------------------------------------------
class wxMaximizeEvent: public wxEvent {
public:
wxMaximizeEvent(int id = 0);
};
//---------------------------------------------------------------------------
class wxJoystickEvent: public wxEvent {
public:
wxJoystickEvent(int type = wxEVT_NULL,
int state = 0,
int joystick = wxJOYSTICK1,
int change = 0);
wxPoint GetPosition();
int GetZPosition();
int GetButtonState();
int GetButtonChange();
int GetJoystick();
void SetJoystick(int stick);
void SetButtonState(int state);
void SetButtonChange(int change);
void SetPosition(const wxPoint& pos);
void SetZPosition(int zPos);
bool IsButton();
bool IsMove();
bool IsZMove();
bool ButtonDown(int but = wxJOY_BUTTON_ANY);
bool ButtonUp(int but = wxJOY_BUTTON_ANY);
bool ButtonIsDown(int but = wxJOY_BUTTON_ANY);
};
//---------------------------------------------------------------------------
class wxDropFilesEvent: public wxEvent {
public:
wxPoint GetPosition();
int GetNumberOfFiles();
%addmethods {
PyObject* GetFiles() {
int count = self->GetNumberOfFiles();
wxString* files = self->GetFiles();
PyObject* list = PyList_New(count);
if (!list) {
PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!");
return NULL;
}
for (int i=0; i<count; i++) {
PyList_SetItem(list, i, PyString_FromString((const char*)files[i]));
}
return list;
}
}
};
//---------------------------------------------------------------------------
class wxIdleEvent: public wxEvent {
public:
wxIdleEvent();
void RequestMore(bool needMore = TRUE);
bool MoreRequested();
};
//---------------------------------------------------------------------------
class wxUpdateUIEvent: public wxEvent {
public:
wxUpdateUIEvent(wxWindowID commandId = 0);
bool GetChecked();
bool GetEnabled();
wxString GetText();
bool GetSetText();
bool GetSetChecked();
bool GetSetEnabled();
void Check(bool check);
void Enable(bool enable);
void SetText(const wxString& text);
};
//---------------------------------------------------------------------------
class wxSysColourChangedEvent: public wxEvent {
public:
wxSysColourChangedEvent();
};
//---------------------------------------------------------------------------
class wxNotifyEvent : public wxCommandEvent {
public:
wxNotifyEvent(int commandType = wxEVT_NULL, int id = 0);
bool IsAllowed();
void Veto();
};
//---------------------------------------------------------------------------
class wxPaletteChangedEvent : public wxEvent {
public:
wxPaletteChangedEvent(wxWindowID id = 0);
void SetChangedWindow(wxWindow* win);
wxWindow* GetChangedWindow();
};
//---------------------------------------------------------------------------
class wxQueryNewPaletteEvent : public wxEvent {
public:
wxQueryNewPaletteEvent(wxWindowID id = 0);
void SetPaletteRealized(bool realized);
bool GetPaletteRealized();
};
//---------------------------------------------------------------------------
class wxWindowCreateEvent : public wxCommandEvent {
public:
wxWindowCreateEvent(wxWindow *win = NULL);
wxWindow *GetWindow();
};
class wxWindowDestroyEvent : public wxCommandEvent {
public:
wxWindowDestroyEvent(wxWindow *win = NULL);
wxWindow *GetWindow();
};
//---------------------------------------------------------------------------
class wxTimerEvent : public wxEvent
{
public:
wxTimerEvent(int id = 0, int interval = 0);
int GetInterval();
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// These classes can be derived from in Python and passed through the event
// system without loosing anything. They do this by keeping a reference to
// themselves and some special case handling in wxPyCallback::EventThunker.
class wxPyEvent : public wxEvent {
public:
wxPyEvent(int id=0);
~wxPyEvent();
%pragma(python) addtomethod = "__init__:self.SetSelf(self)"
void SetSelf(PyObject* self);
PyObject* GetSelf();
};
class wxPyCommandEvent : public wxCommandEvent {
public:
wxPyCommandEvent(wxEventType commandType = wxEVT_NULL, int id=0);
~wxPyCommandEvent();
%pragma(python) addtomethod = "__init__:self.SetSelf(self)"
void SetSelf(PyObject* self);
PyObject* GetSelf();
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
+112
View File
@@ -0,0 +1,112 @@
/////////////////////////////////////////////////////////////////////////////
// Name: frames.i
// Purpose: SWIG definitions of various window classes
//
// Author: Robin Dunn
//
// Created: 8/27/98
// RCS-ID: $Id$
// Copyright: (c) 1998 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
%module frames
%{
#include "helpers.h"
#include <wx/minifram.h>
%}
//----------------------------------------------------------------------
%include typemaps.i
%include my_typemaps.i
// Import some definitions of other classes, etc.
%import _defs.i
%import misc.i
%import gdi.i
%import windows.i
%import stattool.i
%pragma(python) code = "import wx"
//----------------------------------------------------------------------
enum {
wxFULLSCREEN_NOMENUBAR,
wxFULLSCREEN_NOTOOLBAR,
wxFULLSCREEN_NOSTATUSBAR,
wxFULLSCREEN_NOBORDER,
wxFULLSCREEN_NOCAPTION,
wxFULLSCREEN_ALL
};
class wxFrame : public wxWindow {
public:
wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
char* name = "frame");
%pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
void Centre(int direction = wxBOTH);
wxStatusBar* CreateStatusBar(int number = 1,
long style = wxST_SIZEGRIP,
wxWindowID id = -1,
char* name = "statusBar");
wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL|wxTB_FLAT,
wxWindowID id = -1,
char* name = "toolBar");
const wxIcon& GetIcon();
wxMenuBar* GetMenuBar();
wxStatusBar* GetStatusBar();
wxString GetTitle();
wxToolBar* GetToolBar();
void Iconize(bool iconize);
bool IsIconized();
void Maximize(bool maximize);
bool IsMaximized();
void Restore();
void SetAcceleratorTable(const wxAcceleratorTable& accel);
void SetIcon(const wxIcon& icon);
void SetMenuBar(wxMenuBar* menuBar);
void SetStatusBar(wxStatusBar *statusBar);
void SetStatusText(const wxString& text, int number = 0);
void SetStatusWidths(int LCOUNT, int* choices); // uses typemap
void SetTitle(const wxString& title);
void SetToolBar(wxToolBar* toolbar);
void MakeModal(bool modal = TRUE);
wxPoint GetClientAreaOrigin() const;
bool Command(int id);
bool ProcessCommand(int id);
#ifdef __WXMSW__
bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
#endif
};
//---------------------------------------------------------------------------
class wxMiniFrame : public wxFrame {
public:
wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
const wxPoint& pos = wxPyDefaultPosition,
const wxSize& size = wxPyDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
char* name = "frame");
%pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)"
};
//---------------------------------------------------------------------------
+721
View File
File diff suppressed because it is too large Load Diff
+1751
View File
File diff suppressed because it is too large Load Diff
+4
View File
@@ -0,0 +1,4 @@
_glcanvas.cpp
helpers.cpp
libpy.c
File diff suppressed because it is too large Load Diff
+244
View File
@@ -0,0 +1,244 @@
# This file was created automatically by SWIG.
import calendarc
from misc import *
from windows import *
from gdi import *
from clip_dnd import *
from controls import *
from events import *
from utils import *
import wx
def EVT_CALENDAR(win, id, fn):
win.Connect(id, -1, wxEVT_CALENDAR_DOUBLECLICKED, fn)
def EVT_CALENDAR_SEL_CHANGED(win, id, fn):
win.Connect(id, -1, wxEVT_CALENDAR_SEL_CHANGED, fn)
def EVT_CALENDAR_DAY(win, id, fn):
win.Connect(id, -1, wxEVT_CALENDAR_DAY_CHANGED, fn)
def EVT_CALENDAR_MONTH(win, id, fn):
win.Connect(id, -1, wxEVT_CALENDAR_MONTH_CHANGED, fn)
def EVT_CALENDAR_YEAR(win, id, fn):
win.Connect(id, -1, wxEVT_CALENDAR_YEAR_CHANGED, fn)
def EVT_CALENDAR_WEEKDAY_CLICKED(win, id, fn):
win.Connect(id, -1, wxEVT_CALENDAR_WEEKDAY_CLICKED, fn)
class wxCalendarDateAttrPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def SetTextColour(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_SetTextColour,(self,) + _args, _kwargs)
return val
def SetBackgroundColour(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_SetBackgroundColour,(self,) + _args, _kwargs)
return val
def SetBorderColour(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_SetBorderColour,(self,) + _args, _kwargs)
return val
def SetFont(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_SetFont,(self,) + _args, _kwargs)
return val
def SetBorder(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_SetBorder,(self,) + _args, _kwargs)
return val
def SetHoliday(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_SetHoliday,(self,) + _args, _kwargs)
return val
def HasTextColour(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_HasTextColour,(self,) + _args, _kwargs)
return val
def HasBackgroundColour(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_HasBackgroundColour,(self,) + _args, _kwargs)
return val
def HasBorderColour(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_HasBorderColour,(self,) + _args, _kwargs)
return val
def HasFont(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_HasFont,(self,) + _args, _kwargs)
return val
def HasBorder(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_HasBorder,(self,) + _args, _kwargs)
return val
def IsHoliday(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_IsHoliday,(self,) + _args, _kwargs)
return val
def GetTextColour(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_GetTextColour,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val)
return val
def GetBackgroundColour(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_GetBackgroundColour,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val)
return val
def GetBorderColour(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_GetBorderColour,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val)
return val
def GetFont(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_GetFont,(self,) + _args, _kwargs)
if val: val = wxFontPtr(val)
return val
def GetBorder(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarDateAttr_GetBorder,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxCalendarDateAttr instance at %s>" % (self.this,)
class wxCalendarDateAttr(wxCalendarDateAttrPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(calendarc.new_wxCalendarDateAttr,_args,_kwargs)
self.thisown = 1
def wxCalendarDateAttrBorder(*_args,**_kwargs):
val = wxCalendarDateAttrPtr(apply(calendarc.new_wxCalendarDateAttrBorder,_args,_kwargs))
val.thisown = 1
return val
class wxCalendarEventPtr(wxCommandEventPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetDate(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarEvent_GetDate,(self,) + _args, _kwargs)
if val: val = wxDateTimePtr(val)
return val
def GetWeekDay(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarEvent_GetWeekDay,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxCalendarEvent instance at %s>" % (self.this,)
class wxCalendarEvent(wxCalendarEventPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(calendarc.new_wxCalendarEvent,_args,_kwargs)
self.thisown = 1
class wxCalendarCtrlPtr(wxControlPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def SetDate(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_SetDate,(self,) + _args, _kwargs)
return val
def GetDate(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_GetDate,(self,) + _args, _kwargs)
if val: val = wxDateTimePtr(val)
return val
def EnableYearChange(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_EnableYearChange,(self,) + _args, _kwargs)
return val
def EnableMonthChange(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_EnableMonthChange,(self,) + _args, _kwargs)
return val
def EnableHolidayDisplay(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_EnableHolidayDisplay,(self,) + _args, _kwargs)
return val
def SetHeaderColours(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_SetHeaderColours,(self,) + _args, _kwargs)
return val
def GetHeaderColourFg(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_GetHeaderColourFg,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val)
return val
def GetHeaderColourBg(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_GetHeaderColourBg,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val)
return val
def SetHighlightColours(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_SetHighlightColours,(self,) + _args, _kwargs)
return val
def GetHighlightColourFg(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_GetHighlightColourFg,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val)
return val
def GetHighlightColourBg(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_GetHighlightColourBg,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val)
return val
def SetHolidayColours(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_SetHolidayColours,(self,) + _args, _kwargs)
return val
def GetHolidayColourFg(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_GetHolidayColourFg,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val)
return val
def GetHolidayColourBg(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_GetHolidayColourBg,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val)
return val
def GetAttr(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_GetAttr,(self,) + _args, _kwargs)
if val: val = wxCalendarDateAttrPtr(val)
return val
def SetAttr(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_SetAttr,(self,) + _args, _kwargs)
return val
def SetHoliday(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_SetHoliday,(self,) + _args, _kwargs)
return val
def ResetAttr(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_ResetAttr,(self,) + _args, _kwargs)
return val
def HitTest(self, *_args, **_kwargs):
val = apply(calendarc.wxCalendarCtrl_HitTest,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxCalendarCtrl instance at %s>" % (self.this,)
class wxCalendarCtrl(wxCalendarCtrlPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(calendarc.new_wxCalendarCtrl,_args,_kwargs)
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------
wxCAL_SUNDAY_FIRST = calendarc.wxCAL_SUNDAY_FIRST
wxCAL_MONDAY_FIRST = calendarc.wxCAL_MONDAY_FIRST
wxCAL_SHOW_HOLIDAYS = calendarc.wxCAL_SHOW_HOLIDAYS
wxCAL_NO_YEAR_CHANGE = calendarc.wxCAL_NO_YEAR_CHANGE
wxCAL_NO_MONTH_CHANGE = calendarc.wxCAL_NO_MONTH_CHANGE
wxCAL_HITTEST_NOWHERE = calendarc.wxCAL_HITTEST_NOWHERE
wxCAL_HITTEST_HEADER = calendarc.wxCAL_HITTEST_HEADER
wxCAL_HITTEST_DAY = calendarc.wxCAL_HITTEST_DAY
wxCAL_BORDER_NONE = calendarc.wxCAL_BORDER_NONE
wxCAL_BORDER_SQUARE = calendarc.wxCAL_BORDER_SQUARE
wxCAL_BORDER_ROUND = calendarc.wxCAL_BORDER_ROUND
wxEVT_CALENDAR_DOUBLECLICKED = calendarc.wxEVT_CALENDAR_DOUBLECLICKED
wxEVT_CALENDAR_SEL_CHANGED = calendarc.wxEVT_CALENDAR_SEL_CHANGED
wxEVT_CALENDAR_DAY_CHANGED = calendarc.wxEVT_CALENDAR_DAY_CHANGED
wxEVT_CALENDAR_MONTH_CHANGED = calendarc.wxEVT_CALENDAR_MONTH_CHANGED
wxEVT_CALENDAR_YEAR_CHANGED = calendarc.wxEVT_CALENDAR_YEAR_CHANGED
wxEVT_CALENDAR_WEEKDAY_CLICKED = calendarc.wxEVT_CALENDAR_WEEKDAY_CLICKED
#-------------- USER INCLUDE -----------------------
# Stuff these names into the wx namespace so wxPyConstructObject can find them
wx.wxCalendarEventPtr = wxCalendarEventPtr
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
+355
View File
@@ -0,0 +1,355 @@
# This file was created automatically by SWIG.
import cmndlgsc
from misc import *
from gdi import *
from windows import *
from clip_dnd import *
from frames import *
from stattool import *
from controls import *
from events import *
import wx
class wxColourDataPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self,cmndlgsc=cmndlgsc):
if self.thisown == 1 :
cmndlgsc.delete_wxColourData(self)
def GetChooseFull(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourData_GetChooseFull,(self,) + _args, _kwargs)
return val
def GetColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourData_GetColour,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val)
return val
def GetCustomColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourData_GetCustomColour,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def SetChooseFull(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourData_SetChooseFull,(self,) + _args, _kwargs)
return val
def SetColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourData_SetColour,(self,) + _args, _kwargs)
return val
def SetCustomColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourData_SetCustomColour,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxColourData instance at %s>" % (self.this,)
class wxColourData(wxColourDataPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(cmndlgsc.new_wxColourData,_args,_kwargs)
self.thisown = 1
class wxColourDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetColourData(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourDialog_GetColourData,(self,) + _args, _kwargs)
if val: val = wxColourDataPtr(val)
return val
def ShowModal(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourDialog_ShowModal,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxColourDialog instance at %s>" % (self.this,)
class wxColourDialog(wxColourDialogPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(cmndlgsc.new_wxColourDialog,_args,_kwargs)
self.thisown = 1
#wx._StdDialogCallbacks(self)
class wxDirDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetPath(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxDirDialog_GetPath,(self,) + _args, _kwargs)
return val
def GetMessage(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxDirDialog_GetMessage,(self,) + _args, _kwargs)
return val
def GetStyle(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxDirDialog_GetStyle,(self,) + _args, _kwargs)
return val
def SetMessage(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxDirDialog_SetMessage,(self,) + _args, _kwargs)
return val
def SetPath(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxDirDialog_SetPath,(self,) + _args, _kwargs)
return val
def ShowModal(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxDirDialog_ShowModal,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxDirDialog instance at %s>" % (self.this,)
class wxDirDialog(wxDirDialogPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(cmndlgsc.new_wxDirDialog,_args,_kwargs)
self.thisown = 1
#wx._StdDialogCallbacks(self)
class wxFileDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetDirectory(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_GetDirectory,(self,) + _args, _kwargs)
return val
def GetFilename(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_GetFilename,(self,) + _args, _kwargs)
return val
def GetFilterIndex(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_GetFilterIndex,(self,) + _args, _kwargs)
return val
def GetMessage(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_GetMessage,(self,) + _args, _kwargs)
return val
def GetPath(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_GetPath,(self,) + _args, _kwargs)
return val
def GetStyle(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_GetStyle,(self,) + _args, _kwargs)
return val
def GetWildcard(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_GetWildcard,(self,) + _args, _kwargs)
return val
def SetDirectory(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_SetDirectory,(self,) + _args, _kwargs)
return val
def SetFilename(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_SetFilename,(self,) + _args, _kwargs)
return val
def SetFilterIndex(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_SetFilterIndex,(self,) + _args, _kwargs)
return val
def SetMessage(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_SetMessage,(self,) + _args, _kwargs)
return val
def SetPath(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_SetPath,(self,) + _args, _kwargs)
return val
def SetStyle(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_SetStyle,(self,) + _args, _kwargs)
return val
def SetWildcard(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_SetWildcard,(self,) + _args, _kwargs)
return val
def ShowModal(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_ShowModal,(self,) + _args, _kwargs)
return val
def GetFilenames(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_GetFilenames,(self,) + _args, _kwargs)
return val
def GetPaths(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFileDialog_GetPaths,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxFileDialog instance at %s>" % (self.this,)
class wxFileDialog(wxFileDialogPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(cmndlgsc.new_wxFileDialog,_args,_kwargs)
self.thisown = 1
#wx._StdDialogCallbacks(self)
class wxSingleChoiceDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetSelection(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxSingleChoiceDialog_GetSelection,(self,) + _args, _kwargs)
return val
def GetStringSelection(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxSingleChoiceDialog_GetStringSelection,(self,) + _args, _kwargs)
return val
def SetSelection(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxSingleChoiceDialog_SetSelection,(self,) + _args, _kwargs)
return val
def ShowModal(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxSingleChoiceDialog_ShowModal,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxSingleChoiceDialog instance at %s>" % (self.this,)
class wxSingleChoiceDialog(wxSingleChoiceDialogPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,_args,_kwargs)
self.thisown = 1
#wx._StdDialogCallbacks(self)
class wxTextEntryDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetValue(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxTextEntryDialog_GetValue,(self,) + _args, _kwargs)
return val
def SetValue(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxTextEntryDialog_SetValue,(self,) + _args, _kwargs)
return val
def ShowModal(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxTextEntryDialog_ShowModal,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxTextEntryDialog instance at %s>" % (self.this,)
class wxTextEntryDialog(wxTextEntryDialogPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(cmndlgsc.new_wxTextEntryDialog,_args,_kwargs)
self.thisown = 1
#wx._StdDialogCallbacks(self)
class wxFontDataPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self,cmndlgsc=cmndlgsc):
if self.thisown == 1 :
cmndlgsc.delete_wxFontData(self)
def EnableEffects(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_EnableEffects,(self,) + _args, _kwargs)
return val
def GetAllowSymbols(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_GetAllowSymbols,(self,) + _args, _kwargs)
return val
def GetColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_GetColour,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val)
return val
def GetChosenFont(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_GetChosenFont,(self,) + _args, _kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def GetEnableEffects(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_GetEnableEffects,(self,) + _args, _kwargs)
return val
def GetInitialFont(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_GetInitialFont,(self,) + _args, _kwargs)
if val: val = wxFontPtr(val) ; val.thisown = 1
return val
def GetShowHelp(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_GetShowHelp,(self,) + _args, _kwargs)
return val
def SetAllowSymbols(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_SetAllowSymbols,(self,) + _args, _kwargs)
return val
def SetChosenFont(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_SetChosenFont,(self,) + _args, _kwargs)
return val
def SetColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_SetColour,(self,) + _args, _kwargs)
return val
def SetInitialFont(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_SetInitialFont,(self,) + _args, _kwargs)
return val
def SetRange(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_SetRange,(self,) + _args, _kwargs)
return val
def SetShowHelp(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_SetShowHelp,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxFontData instance at %s>" % (self.this,)
class wxFontData(wxFontDataPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(cmndlgsc.new_wxFontData,_args,_kwargs)
self.thisown = 1
class wxFontDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetFontData(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontDialog_GetFontData,(self,) + _args, _kwargs)
if val: val = wxFontDataPtr(val)
return val
def ShowModal(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontDialog_ShowModal,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxFontDialog instance at %s>" % (self.this,)
class wxFontDialog(wxFontDialogPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(cmndlgsc.new_wxFontDialog,_args,_kwargs)
self.thisown = 1
#wx._StdDialogCallbacks(self)
class wxMessageDialogPtr(wxDialogPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def ShowModal(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxMessageDialog_ShowModal,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxMessageDialog instance at %s>" % (self.this,)
class wxMessageDialog(wxMessageDialogPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(cmndlgsc.new_wxMessageDialog,_args,_kwargs)
self.thisown = 1
#wx._StdDialogCallbacks(self)
class wxProgressDialogPtr(wxFramePtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Update(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxProgressDialog_Update,(self,) + _args, _kwargs)
return val
def Resume(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxProgressDialog_Resume,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxProgressDialog instance at %s>" % (self.this,)
class wxProgressDialog(wxProgressDialogPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(cmndlgsc.new_wxProgressDialog,_args,_kwargs)
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------
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
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
+143
View File
@@ -0,0 +1,143 @@
# This file was created automatically by SWIG.
import framesc
from misc import *
from gdi import *
from windows import *
from clip_dnd import *
from stattool import *
from controls import *
from events import *
import wx
class wxFramePtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Centre(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_Centre,(self,) + _args, _kwargs)
return val
def CreateStatusBar(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_CreateStatusBar,(self,) + _args, _kwargs)
if val: val = wxStatusBarPtr(val)
return val
def CreateToolBar(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_CreateToolBar,(self,) + _args, _kwargs)
if val: val = wxToolBarPtr(val)
return val
def GetIcon(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_GetIcon,(self,) + _args, _kwargs)
if val: val = wxIconPtr(val)
return val
def GetMenuBar(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_GetMenuBar,(self,) + _args, _kwargs)
if val: val = wxMenuBarPtr(val)
return val
def GetStatusBar(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_GetStatusBar,(self,) + _args, _kwargs)
if val: val = wxStatusBarPtr(val)
return val
def GetTitle(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_GetTitle,(self,) + _args, _kwargs)
return val
def GetToolBar(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_GetToolBar,(self,) + _args, _kwargs)
if val: val = wxToolBarPtr(val)
return val
def Iconize(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_Iconize,(self,) + _args, _kwargs)
return val
def IsIconized(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_IsIconized,(self,) + _args, _kwargs)
return val
def Maximize(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_Maximize,(self,) + _args, _kwargs)
return val
def IsMaximized(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_IsMaximized,(self,) + _args, _kwargs)
return val
def Restore(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_Restore,(self,) + _args, _kwargs)
return val
def SetAcceleratorTable(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_SetAcceleratorTable,(self,) + _args, _kwargs)
return val
def SetIcon(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_SetIcon,(self,) + _args, _kwargs)
return val
def SetMenuBar(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_SetMenuBar,(self,) + _args, _kwargs)
return val
def SetStatusBar(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_SetStatusBar,(self,) + _args, _kwargs)
return val
def SetStatusText(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_SetStatusText,(self,) + _args, _kwargs)
return val
def SetStatusWidths(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_SetStatusWidths,(self,) + _args, _kwargs)
return val
def SetTitle(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_SetTitle,(self,) + _args, _kwargs)
return val
def SetToolBar(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_SetToolBar,(self,) + _args, _kwargs)
return val
def MakeModal(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_MakeModal,(self,) + _args, _kwargs)
return val
def GetClientAreaOrigin(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_GetClientAreaOrigin,(self,) + _args, _kwargs)
if val: val = wxPointPtr(val) ; val.thisown = 1
return val
def Command(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_Command,(self,) + _args, _kwargs)
return val
def ProcessCommand(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_ProcessCommand,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxFrame instance at %s>" % (self.this,)
class wxFrame(wxFramePtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(framesc.new_wxFrame,_args,_kwargs)
self.thisown = 1
#wx._StdFrameCallbacks(self)
class wxMiniFramePtr(wxFramePtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxMiniFrame instance at %s>" % (self.this,)
class wxMiniFrame(wxMiniFramePtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(framesc.new_wxMiniFrame,_args,_kwargs)
self.thisown = 1
#wx._StdFrameCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------
wxFULLSCREEN_NOMENUBAR = framesc.wxFULLSCREEN_NOMENUBAR
wxFULLSCREEN_NOTOOLBAR = framesc.wxFULLSCREEN_NOTOOLBAR
wxFULLSCREEN_NOSTATUSBAR = framesc.wxFULLSCREEN_NOSTATUSBAR
wxFULLSCREEN_NOBORDER = framesc.wxFULLSCREEN_NOBORDER
wxFULLSCREEN_NOCAPTION = framesc.wxFULLSCREEN_NOCAPTION
wxFULLSCREEN_ALL = framesc.wxFULLSCREEN_ALL
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
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
+356
View File
@@ -0,0 +1,356 @@
# This file was created automatically by SWIG.
import htmlhelpc
from misc import *
from misc2 import *
from windows import *
from gdi import *
from clip_dnd import *
from events import *
from mdi import *
from frames import *
from stattool import *
from controls import *
from controls2 import *
from windows2 import *
from cmndlgs import *
from windows3 import *
from image import *
from printfw import *
from sizers import *
class wxHtmlHelpFrameCfgPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __setattr__(self,name,value):
if name == "x" :
htmlhelpc.wxHtmlHelpFrameCfg_x_set(self,value)
return
if name == "y" :
htmlhelpc.wxHtmlHelpFrameCfg_y_set(self,value)
return
if name == "w" :
htmlhelpc.wxHtmlHelpFrameCfg_w_set(self,value)
return
if name == "h" :
htmlhelpc.wxHtmlHelpFrameCfg_h_set(self,value)
return
if name == "sashpos" :
htmlhelpc.wxHtmlHelpFrameCfg_sashpos_set(self,value)
return
if name == "navig_on" :
htmlhelpc.wxHtmlHelpFrameCfg_navig_on_set(self,value)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "x" :
return htmlhelpc.wxHtmlHelpFrameCfg_x_get(self)
if name == "y" :
return htmlhelpc.wxHtmlHelpFrameCfg_y_get(self)
if name == "w" :
return htmlhelpc.wxHtmlHelpFrameCfg_w_get(self)
if name == "h" :
return htmlhelpc.wxHtmlHelpFrameCfg_h_get(self)
if name == "sashpos" :
return htmlhelpc.wxHtmlHelpFrameCfg_sashpos_get(self)
if name == "navig_on" :
return htmlhelpc.wxHtmlHelpFrameCfg_navig_on_get(self)
raise AttributeError,name
def __repr__(self):
return "<C wxHtmlHelpFrameCfg instance at %s>" % (self.this,)
class wxHtmlHelpFrameCfg(wxHtmlHelpFrameCfgPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(htmlhelpc.new_wxHtmlHelpFrameCfg,_args,_kwargs)
self.thisown = 1
class wxHtmlBookRecordPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def GetTitle(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlBookRecord_GetTitle,(self,) + _args, _kwargs)
return val
def GetStart(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlBookRecord_GetStart,(self,) + _args, _kwargs)
return val
def GetBasePath(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlBookRecord_GetBasePath,(self,) + _args, _kwargs)
return val
def SetContentsRange(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlBookRecord_SetContentsRange,(self,) + _args, _kwargs)
return val
def GetContentsStart(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlBookRecord_GetContentsStart,(self,) + _args, _kwargs)
return val
def GetContentsEnd(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlBookRecord_GetContentsEnd,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxHtmlBookRecord instance at %s>" % (self.this,)
class wxHtmlBookRecord(wxHtmlBookRecordPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(htmlhelpc.new_wxHtmlBookRecord,_args,_kwargs)
self.thisown = 1
class wxHtmlContentsItemPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __setattr__(self,name,value):
if name == "m_Level" :
htmlhelpc.wxHtmlContentsItem_m_Level_set(self,value)
return
if name == "m_ID" :
htmlhelpc.wxHtmlContentsItem_m_ID_set(self,value)
return
if name == "m_Name" :
htmlhelpc.wxHtmlContentsItem_m_Name_set(self,value)
return
if name == "m_Page" :
htmlhelpc.wxHtmlContentsItem_m_Page_set(self,value)
return
if name == "m_Book" :
htmlhelpc.wxHtmlContentsItem_m_Book_set(self,value.this)
return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "m_Level" :
return htmlhelpc.wxHtmlContentsItem_m_Level_get(self)
if name == "m_ID" :
return htmlhelpc.wxHtmlContentsItem_m_ID_get(self)
if name == "m_Name" :
return htmlhelpc.wxHtmlContentsItem_m_Name_get(self)
if name == "m_Page" :
return htmlhelpc.wxHtmlContentsItem_m_Page_get(self)
if name == "m_Book" :
return wxHtmlBookRecordPtr(htmlhelpc.wxHtmlContentsItem_m_Book_get(self))
raise AttributeError,name
def __repr__(self):
return "<C wxHtmlContentsItem instance at %s>" % (self.this,)
class wxHtmlContentsItem(wxHtmlContentsItemPtr):
def __init__(self,this):
self.this = this
class wxHtmlSearchStatusPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def Search(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlSearchStatus_Search,(self,) + _args, _kwargs)
return val
def IsActive(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlSearchStatus_IsActive,(self,) + _args, _kwargs)
return val
def GetCurIndex(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlSearchStatus_GetCurIndex,(self,) + _args, _kwargs)
return val
def GetMaxIndex(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlSearchStatus_GetMaxIndex,(self,) + _args, _kwargs)
return val
def GetName(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlSearchStatus_GetName,(self,) + _args, _kwargs)
return val
def GetContentsItem(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlSearchStatus_GetContentsItem,(self,) + _args, _kwargs)
if val: val = wxHtmlContentsItemPtr(val)
return val
def __repr__(self):
return "<C wxHtmlSearchStatus instance at %s>" % (self.this,)
class wxHtmlSearchStatus(wxHtmlSearchStatusPtr):
def __init__(self,this):
self.this = this
class wxHtmlHelpDataPtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self,htmlhelpc=htmlhelpc):
if self.thisown == 1 :
htmlhelpc.delete_wxHtmlHelpData(self)
def SetTempDir(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpData_SetTempDir,(self,) + _args, _kwargs)
return val
def AddBook(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpData_AddBook,(self,) + _args, _kwargs)
return val
def FindPageByName(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpData_FindPageByName,(self,) + _args, _kwargs)
return val
def FindPageById(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpData_FindPageById,(self,) + _args, _kwargs)
return val
def GetBookRecArray(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpData_GetBookRecArray,(self,) + _args, _kwargs)
return val
def GetContents(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpData_GetContents,(self,) + _args, _kwargs)
if val: val = wxHtmlContentsItemPtr(val)
return val
def GetContentsCnt(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpData_GetContentsCnt,(self,) + _args, _kwargs)
return val
def GetIndex(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpData_GetIndex,(self,) + _args, _kwargs)
if val: val = wxHtmlContentsItemPtr(val)
return val
def GetIndexCnt(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpData_GetIndexCnt,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxHtmlHelpData instance at %s>" % (self.this,)
class wxHtmlHelpData(wxHtmlHelpDataPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(htmlhelpc.new_wxHtmlHelpData,_args,_kwargs)
self.thisown = 1
class wxHtmlHelpFramePtr(wxFramePtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetData(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpFrame_GetData,(self,) + _args, _kwargs)
if val: val = wxHtmlHelpDataPtr(val)
return val
def SetTitleFormat(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpFrame_SetTitleFormat,(self,) + _args, _kwargs)
return val
def Display(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpFrame_Display,(self,) + _args, _kwargs)
return val
def DisplayID(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayID,(self,) + _args, _kwargs)
return val
def DisplayContents(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayContents,(self,) + _args, _kwargs)
return val
def DisplayIndex(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpFrame_DisplayIndex,(self,) + _args, _kwargs)
return val
def KeywordSearch(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpFrame_KeywordSearch,(self,) + _args, _kwargs)
return val
def UseConfig(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpFrame_UseConfig,(self,) + _args, _kwargs)
return val
def ReadCustomization(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpFrame_ReadCustomization,(self,) + _args, _kwargs)
return val
def WriteCustomization(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpFrame_WriteCustomization,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxHtmlHelpFrame instance at %s>" % (self.this,)
class wxHtmlHelpFrame(wxHtmlHelpFramePtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(htmlhelpc.new_wxHtmlHelpFrame,_args,_kwargs)
self.thisown = 1
class wxHtmlHelpControllerPtr(wxEvtHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self,htmlhelpc=htmlhelpc):
if self.thisown == 1 :
htmlhelpc.delete_wxHtmlHelpController(self)
def SetTitleFormat(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpController_SetTitleFormat,(self,) + _args, _kwargs)
return val
def SetTempDir(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpController_SetTempDir,(self,) + _args, _kwargs)
return val
def AddBook(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpController_AddBook,(self,) + _args, _kwargs)
return val
def Display(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpController_Display,(self,) + _args, _kwargs)
return val
def DisplayID(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpController_DisplayID,(self,) + _args, _kwargs)
return val
def DisplayContents(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpController_DisplayContents,(self,) + _args, _kwargs)
return val
def DisplayIndex(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpController_DisplayIndex,(self,) + _args, _kwargs)
return val
def KeywordSearch(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpController_KeywordSearch,(self,) + _args, _kwargs)
return val
def UseConfig(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpController_UseConfig,(self,) + _args, _kwargs)
return val
def ReadCustomization(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpController_ReadCustomization,(self,) + _args, _kwargs)
return val
def WriteCustomization(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpController_WriteCustomization,(self,) + _args, _kwargs)
return val
def GetFrame(self, *_args, **_kwargs):
val = apply(htmlhelpc.wxHtmlHelpController_GetFrame,(self,) + _args, _kwargs)
if val: val = wxHtmlHelpFramePtr(val)
return val
def __repr__(self):
return "<C wxHtmlHelpController instance at %s>" % (self.this,)
class wxHtmlHelpController(wxHtmlHelpControllerPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(htmlhelpc.new_wxHtmlHelpController,_args,_kwargs)
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------
wxID_HTML_PANEL = htmlhelpc.wxID_HTML_PANEL
wxID_HTML_BACK = htmlhelpc.wxID_HTML_BACK
wxID_HTML_FORWARD = htmlhelpc.wxID_HTML_FORWARD
wxID_HTML_TREECTRL = htmlhelpc.wxID_HTML_TREECTRL
wxID_HTML_INDEXPAGE = htmlhelpc.wxID_HTML_INDEXPAGE
wxID_HTML_INDEXLIST = htmlhelpc.wxID_HTML_INDEXLIST
wxID_HTML_NOTEBOOK = htmlhelpc.wxID_HTML_NOTEBOOK
wxID_HTML_SEARCHPAGE = htmlhelpc.wxID_HTML_SEARCHPAGE
wxID_HTML_SEARCHTEXT = htmlhelpc.wxID_HTML_SEARCHTEXT
wxID_HTML_SEARCHLIST = htmlhelpc.wxID_HTML_SEARCHLIST
wxID_HTML_SEARCHBUTTON = htmlhelpc.wxID_HTML_SEARCHBUTTON
wxID_HTML_SEARCHCHOICE = htmlhelpc.wxID_HTML_SEARCHCHOICE
wxID_HTML_HELPFRAME = htmlhelpc.wxID_HTML_HELPFRAME
File diff suppressed because it is too large Load Diff
+294
View File
@@ -0,0 +1,294 @@
# 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, *_args, **_kwargs):
val = apply(imagec.wxImageHandler_GetName,(self,) + _args, _kwargs)
return val
def GetExtension(self, *_args, **_kwargs):
val = apply(imagec.wxImageHandler_GetExtension,(self,) + _args, _kwargs)
return val
def GetType(self, *_args, **_kwargs):
val = apply(imagec.wxImageHandler_GetType,(self,) + _args, _kwargs)
return val
def GetMimeType(self, *_args, **_kwargs):
val = apply(imagec.wxImageHandler_GetMimeType,(self,) + _args, _kwargs)
return val
def SetName(self, *_args, **_kwargs):
val = apply(imagec.wxImageHandler_SetName,(self,) + _args, _kwargs)
return val
def SetExtension(self, *_args, **_kwargs):
val = apply(imagec.wxImageHandler_SetExtension,(self,) + _args, _kwargs)
return val
def SetType(self, *_args, **_kwargs):
val = apply(imagec.wxImageHandler_SetType,(self,) + _args, _kwargs)
return val
def SetMimeType(self, *_args, **_kwargs):
val = apply(imagec.wxImageHandler_SetMimeType,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxImageHandler instance at %s>" % (self.this,)
class wxImageHandler(wxImageHandlerPtr):
def __init__(self,this):
self.this = this
class wxPNGHandlerPtr(wxImageHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxPNGHandler instance at %s>" % (self.this,)
class wxPNGHandler(wxPNGHandlerPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(imagec.new_wxPNGHandler,_args,_kwargs)
self.thisown = 1
class wxJPEGHandlerPtr(wxImageHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxJPEGHandler instance at %s>" % (self.this,)
class wxJPEGHandler(wxJPEGHandlerPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(imagec.new_wxJPEGHandler,_args,_kwargs)
self.thisown = 1
class wxBMPHandlerPtr(wxImageHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxBMPHandler instance at %s>" % (self.this,)
class wxBMPHandler(wxBMPHandlerPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(imagec.new_wxBMPHandler,_args,_kwargs)
self.thisown = 1
class wxGIFHandlerPtr(wxImageHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxGIFHandler instance at %s>" % (self.this,)
class wxGIFHandler(wxGIFHandlerPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(imagec.new_wxGIFHandler,_args,_kwargs)
self.thisown = 1
class wxPNMHandlerPtr(wxImageHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxPNMHandler instance at %s>" % (self.this,)
class wxPNMHandler(wxPNMHandlerPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(imagec.new_wxPNMHandler,_args,_kwargs)
self.thisown = 1
class wxPCXHandlerPtr(wxImageHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxPCXHandler instance at %s>" % (self.this,)
class wxPCXHandler(wxPCXHandlerPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(imagec.new_wxPCXHandler,_args,_kwargs)
self.thisown = 1
class wxTIFFHandlerPtr(wxImageHandlerPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxTIFFHandler instance at %s>" % (self.this,)
class wxTIFFHandler(wxTIFFHandlerPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(imagec.new_wxTIFFHandler,_args,_kwargs)
self.thisown = 1
class wxImagePtr :
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self,imagec=imagec):
if self.thisown == 1 :
imagec.delete_wxImage(self)
def ConvertToBitmap(self, *_args, **_kwargs):
val = apply(imagec.wxImage_ConvertToBitmap,(self,) + _args, _kwargs)
if val: val = wxBitmapPtr(val) ; val.thisown = 1
return val
def Create(self, *_args, **_kwargs):
val = apply(imagec.wxImage_Create,(self,) + _args, _kwargs)
return val
def Destroy(self, *_args, **_kwargs):
val = apply(imagec.wxImage_Destroy,(self,) + _args, _kwargs)
return val
def Scale(self, *_args, **_kwargs):
val = apply(imagec.wxImage_Scale,(self,) + _args, _kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def Rescale(self, *_args, **_kwargs):
val = apply(imagec.wxImage_Rescale,(self,) + _args, _kwargs)
if val: val = wxImagePtr(val)
return val
def SetRGB(self, *_args, **_kwargs):
val = apply(imagec.wxImage_SetRGB,(self,) + _args, _kwargs)
return val
def GetRed(self, *_args, **_kwargs):
val = apply(imagec.wxImage_GetRed,(self,) + _args, _kwargs)
return val
def GetGreen(self, *_args, **_kwargs):
val = apply(imagec.wxImage_GetGreen,(self,) + _args, _kwargs)
return val
def GetBlue(self, *_args, **_kwargs):
val = apply(imagec.wxImage_GetBlue,(self,) + _args, _kwargs)
return val
def LoadFile(self, *_args, **_kwargs):
val = apply(imagec.wxImage_LoadFile,(self,) + _args, _kwargs)
return val
def LoadMimeFile(self, *_args, **_kwargs):
val = apply(imagec.wxImage_LoadMimeFile,(self,) + _args, _kwargs)
return val
def SaveFile(self, *_args, **_kwargs):
val = apply(imagec.wxImage_SaveFile,(self,) + _args, _kwargs)
return val
def SaveMimeFile(self, *_args, **_kwargs):
val = apply(imagec.wxImage_SaveMimeFile,(self,) + _args, _kwargs)
return val
def Ok(self, *_args, **_kwargs):
val = apply(imagec.wxImage_Ok,(self,) + _args, _kwargs)
return val
def GetWidth(self, *_args, **_kwargs):
val = apply(imagec.wxImage_GetWidth,(self,) + _args, _kwargs)
return val
def GetHeight(self, *_args, **_kwargs):
val = apply(imagec.wxImage_GetHeight,(self,) + _args, _kwargs)
return val
def GetSubImage(self, *_args, **_kwargs):
val = apply(imagec.wxImage_GetSubImage,(self,) + _args, _kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def Copy(self, *_args, **_kwargs):
val = apply(imagec.wxImage_Copy,(self,) + _args, _kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def Paste(self, *_args, **_kwargs):
val = apply(imagec.wxImage_Paste,(self,) + _args, _kwargs)
return val
def GetData(self, *_args, **_kwargs):
val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs)
return val
def SetData(self, *_args, **_kwargs):
val = apply(imagec.wxImage_SetData,(self,) + _args, _kwargs)
return val
def SetMaskColour(self, *_args, **_kwargs):
val = apply(imagec.wxImage_SetMaskColour,(self,) + _args, _kwargs)
return val
def GetMaskRed(self, *_args, **_kwargs):
val = apply(imagec.wxImage_GetMaskRed,(self,) + _args, _kwargs)
return val
def GetMaskGreen(self, *_args, **_kwargs):
val = apply(imagec.wxImage_GetMaskGreen,(self,) + _args, _kwargs)
return val
def GetMaskBlue(self, *_args, **_kwargs):
val = apply(imagec.wxImage_GetMaskBlue,(self,) + _args, _kwargs)
return val
def SetMask(self, *_args, **_kwargs):
val = apply(imagec.wxImage_SetMask,(self,) + _args, _kwargs)
return val
def HasMask(self, *_args, **_kwargs):
val = apply(imagec.wxImage_HasMask,(self,) + _args, _kwargs)
return val
def Rotate(self, *_args, **_kwargs):
val = apply(imagec.wxImage_Rotate,(self,) + _args, _kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def Rotate90(self, *_args, **_kwargs):
val = apply(imagec.wxImage_Rotate90,(self,) + _args, _kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def Mirror(self, *_args, **_kwargs):
val = apply(imagec.wxImage_Mirror,(self,) + _args, _kwargs)
if val: val = wxImagePtr(val) ; val.thisown = 1
return val
def Replace(self, *_args, **_kwargs):
val = apply(imagec.wxImage_Replace,(self,) + _args, _kwargs)
return val
def CountColours(self, *_args, **_kwargs):
val = apply(imagec.wxImage_CountColours,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxImage instance at %s>" % (self.this,)
class wxImage(wxImagePtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(imagec.new_wxImage,_args,_kwargs)
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
def wxNullImage(*_args, **_kwargs):
val = apply(imagec.wxNullImage,_args,_kwargs)
if val: val = wxImagePtr(val); val.thisown = 1
return val
def wxEmptyImage(*_args, **_kwargs):
val = apply(imagec.wxEmptyImage,_args,_kwargs)
if val: val = wxImagePtr(val); val.thisown = 1
return val
def wxImageFromMime(*_args, **_kwargs):
val = apply(imagec.wxImageFromMime,_args,_kwargs)
if val: val = wxImagePtr(val); val.thisown = 1
return val
def wxImageFromBitmap(*_args, **_kwargs):
val = apply(imagec.wxImageFromBitmap,_args,_kwargs)
if val: val = wxImagePtr(val); val.thisown = 1
return val
wxImage_AddHandler = imagec.wxImage_AddHandler
wxInitAllImageHandlers = imagec.wxInitAllImageHandlers
#-------------- VARIABLE WRAPPERS ------------------
File diff suppressed because it is too large Load Diff
+109
View File
@@ -0,0 +1,109 @@
# This file was created automatically by SWIG.
import mdic
from misc import *
from windows import *
from gdi import *
from clip_dnd import *
from frames import *
from stattool import *
from controls import *
from events import *
import wx
class wxMDIParentFramePtr(wxFramePtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def ActivateNext(self, *_args, **_kwargs):
val = apply(mdic.wxMDIParentFrame_ActivateNext,(self,) + _args, _kwargs)
return val
def ActivatePrevious(self, *_args, **_kwargs):
val = apply(mdic.wxMDIParentFrame_ActivatePrevious,(self,) + _args, _kwargs)
return val
def ArrangeIcons(self, *_args, **_kwargs):
val = apply(mdic.wxMDIParentFrame_ArrangeIcons,(self,) + _args, _kwargs)
return val
def Cascade(self, *_args, **_kwargs):
val = apply(mdic.wxMDIParentFrame_Cascade,(self,) + _args, _kwargs)
return val
def GetActiveChild(self, *_args, **_kwargs):
val = apply(mdic.wxMDIParentFrame_GetActiveChild,(self,) + _args, _kwargs)
if val: val = wxMDIChildFramePtr(val)
return val
def GetClientWindow(self, *_args, **_kwargs):
val = apply(mdic.wxMDIParentFrame_GetClientWindow,(self,) + _args, _kwargs)
if val: val = wxMDIClientWindowPtr(val)
return val
def GetToolBar(self, *_args, **_kwargs):
val = apply(mdic.wxMDIParentFrame_GetToolBar,(self,) + _args, _kwargs)
if val: val = wxWindowPtr(val)
return val
def Tile(self, *_args, **_kwargs):
val = apply(mdic.wxMDIParentFrame_Tile,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxMDIParentFrame instance at %s>" % (self.this,)
class wxMDIParentFrame(wxMDIParentFramePtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(mdic.new_wxMDIParentFrame,_args,_kwargs)
self.thisown = 1
#wx._StdFrameCallbacks(self)
class wxMDIChildFramePtr(wxFramePtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Activate(self, *_args, **_kwargs):
val = apply(mdic.wxMDIChildFrame_Activate,(self,) + _args, _kwargs)
return val
def Maximize(self, *_args, **_kwargs):
val = apply(mdic.wxMDIChildFrame_Maximize,(self,) + _args, _kwargs)
return val
def Restore(self, *_args, **_kwargs):
val = apply(mdic.wxMDIChildFrame_Restore,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxMDIChildFrame instance at %s>" % (self.this,)
class wxMDIChildFrame(wxMDIChildFramePtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(mdic.new_wxMDIChildFrame,_args,_kwargs)
self.thisown = 1
#wx._StdFrameCallbacks(self)
class wxMDIClientWindowPtr(wxWindowPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __repr__(self):
return "<C wxMDIClientWindow instance at %s>" % (self.this,)
class wxMDIClientWindow(wxMDIClientWindowPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(mdic.new_wxMDIClientWindow,_args,_kwargs)
self.thisown = 1
#wx._StdWindowCallbacks(self)
#wx._StdOnScrollCallbacks(self)
#-------------- FUNCTION WRAPPERS ------------------
#-------------- VARIABLE WRAPPERS ------------------
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
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More