tb.SetTitle("Floating!")
self.CreateStatusBar()
- tb.AddSimpleTool(10, images.getNewBitmap(), "New", "Long help for 'New'")
+ tb.AddSimpleTool(10, '', images.getNewBitmap(), "New", "Long help for 'New'")
EVT_TOOL(self, 10, self.OnToolClick)
EVT_TOOL_RCLICKED(self, 10, self.OnToolRClick)
- tb.AddSimpleTool(20, images.getOpenBitmap(), "Open")
+ tb.AddSimpleTool(20, '', images.getOpenBitmap(), "Open")
EVT_TOOL(self, 20, self.OnToolClick)
EVT_TOOL_RCLICKED(self, 20, self.OnToolRClick)
tb.AddSeparator()
- tb.AddSimpleTool(30, images.getCopyBitmap(), "Copy")
+ tb.AddSimpleTool(30, '', images.getCopyBitmap(), "Copy")
EVT_TOOL(self, 30, self.OnToolClick)
EVT_TOOL_RCLICKED(self, 30, self.OnToolRClick)
- tb.AddSimpleTool(40, images.getPasteBitmap(), "Paste")
+ tb.AddSimpleTool(40, '', images.getPasteBitmap(), "Paste")
EVT_TOOL(self, 40, self.OnToolClick)
EVT_TOOL_RCLICKED(self, 40, self.OnToolRClick)
tb.AddSeparator()
- tb.AddTool(60, images.getTog1Bitmap(), images.getTog2Bitmap(),
- shortHelpString="Toggle with 2 bitmaps", isToggle=true)
+ tb.AddCheckTool(60, '', images.getTog1Bitmap(), images.getTog2Bitmap())
EVT_TOOL(self, 60, self.OnToolClick)
EVT_TOOL_RCLICKED(self, 60, self.OnToolRClick)
tb.Realize()
def OnToolRClick(self, event):
self.log.WriteText("tool %s right-clicked\n" % event.GetId())
- # def test(self, event):
- # self.log.WriteText("Button clicked!")
#---------------------------------------------------------------------------
self.CreateStatusBar()
- tb.AddSimpleTool(10, images.getNewBitmap(), "New", "Long help for 'New'")
+ tb.AddSimpleTool(10, '', images.getNewBitmap(), "New", "Long help for 'New'")
EVT_TOOL(self, 10, self.OnToolClick)
EVT_TOOL_RCLICKED(self, 10, self.OnToolRClick)
- tb.AddSimpleTool(20, images.getOpenBitmap(), "Open", "Long help for 'Open'")
+ tb.AddSimpleTool(20, '', images.getOpenBitmap(), "Open", "Long help for 'Open'")
EVT_TOOL(self, 20, self.OnToolClick)
EVT_TOOL_RCLICKED(self, 20, self.OnToolRClick)
tb.AddSeparator()
- tb.AddSimpleTool(30, images.getCopyBitmap(), "Copy", "Long help for 'Copy'")
+ tb.AddSimpleTool(30, '', images.getCopyBitmap(), "Copy", "Long help for 'Copy'")
EVT_TOOL(self, 30, self.OnToolClick)
EVT_TOOL_RCLICKED(self, 30, self.OnToolRClick)
- tb.AddSimpleTool(40, images.getPasteBitmap(), "Paste", "Long help for 'Paste'")
+ tb.AddSimpleTool(40, '', images.getPasteBitmap(), "Paste", "Long help for 'Paste'")
EVT_TOOL(self, 40, self.OnToolClick)
EVT_TOOL_RCLICKED(self, 40, self.OnToolRClick)
tb.AddSeparator()
- tool = tb.AddTool(50, images.getTog1Bitmap(),
- shortHelpString="Toggle this", isToggle=true)
+ tool = tb.AddCheckTool(50, '', images.getTog1Bitmap(),
+ shortHelp="Toggle this")
EVT_TOOL(self, 50, self.OnToolClick)
- tb.AddTool(60, images.getTog1Bitmap(), images.getTog2Bitmap(),
- shortHelpString="Toggle with 2 bitmaps", isToggle=true)
- EVT_TOOL(self, 60, self.OnToolClick)
+ #tb.AddCheckTool(60, '', images.getTog1Bitmap(), images.getTog2Bitmap(),
+ # shortHelp="Toggle with 2 bitmaps")
+ #EVT_TOOL(self, 60, self.OnToolClick)
EVT_TOOL_ENTER(self, -1, self.OnToolEnter)
EVT_TOOL_RCLICKED(self, -1, self.OnToolRClick) # Match all
Source: "%(SYSDIR)s\MSVCIRT.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: sharedfile uninsneveruninstall restartreplace; Components: core
Source: "%(WXDIR)s\lib\%(WXDLL)s"; DestDir: "{app}\wxPython"; Components: core
-;;%(MSLU)s
+%(MSLU)s
Source: "wxPython\wxc.pyd"; DestDir: "{app}\wxPython"; Components: core
Source: "wxPython\wxc.pyd.manifest"; DestDir: "{app}\wxPython"; Components: core
Source: "wxPython\gridc.pyd"; DestDir: "{app}\wxPython"; Components: core
PYVER = PYVER + "-hybrid"
MSLU=''
-## if len(sys.argv) > 1 and sys.argv[1] == "UNICODE=1":
-## MSLU=r'Source: "%(WXDIR)s\lib\unicows.dll"; DestDir: "{app}\wxPython"; Components: core' % vars()
+ if len(sys.argv) > 1 and sys.argv[1] == "UNICODE=1":
+ MSLU=r'Source: "%(WXDIR)s\lib\unicows.dll"; DestDir: "{code:GetPythonDir}"; Components: core' % vars()
f = open(ISSFILE, "w")
f.write(ISS_Template % vars())
# flags and values that affect this script
#----------------------------------------------------------------------
-VERSION = "2.3.3pre2u"
+VERSION = "2.3.3pre2"
DESCRIPTION = "Cross platform GUI toolkit for Python"
AUTHOR = "Robin Dunn"
AUTHOR_EMAIL = "Robin Dunn <robin@alldunn.com>"
-ver = '2.3.3pre2u'
+ver = '2.3.3pre2'
wxString * _arg2;
wxBitmap * _arg3;
wxBitmap * _arg4 = (wxBitmap *) &wxNullBitmap;
- wxString * _arg5 = (wxString *) &wxEmptyString;
- wxString * _arg6 = (wxString *) &wxEmptyString;
+ wxString * _arg5 = (wxString *) &wxPyEmptyString;
+ wxString * _arg6 = (wxString *) &wxPyEmptyString;
PyObject * _arg7 = (PyObject *) NULL;
PyObject * _argo0 = 0;
PyObject * _obj2 = 0;
wxString * _arg2;
wxBitmap * _arg3;
wxBitmap * _arg4 = (wxBitmap *) &wxNullBitmap;
- wxString * _arg5 = (wxString *) &wxEmptyString;
- wxString * _arg6 = (wxString *) &wxEmptyString;
+ wxString * _arg5 = (wxString *) &wxPyEmptyString;
+ wxString * _arg6 = (wxString *) &wxPyEmptyString;
PyObject * _arg7 = (PyObject *) NULL;
PyObject * _argo0 = 0;
PyObject * _obj2 = 0;
wxBitmap * _arg4;
wxBitmap * _arg5 = (wxBitmap *) &wxNullBitmap;
wxItemKind _arg6 = (wxItemKind ) wxITEM_NORMAL;
- wxString * _arg7 = (wxString *) &wxEmptyString;
- wxString * _arg8 = (wxString *) &wxEmptyString;
+ wxString * _arg7 = (wxString *) &wxPyEmptyString;
+ wxString * _arg8 = (wxString *) &wxPyEmptyString;
PyObject * _arg9 = (PyObject *) NULL;
PyObject * _argo0 = 0;
PyObject * _obj3 = 0;
wxString * _arg3;
wxBitmap * _arg4;
wxItemKind _arg5 = (wxItemKind ) wxITEM_NORMAL;
- wxString * _arg6 = (wxString *) &wxEmptyString;
- wxString * _arg7 = (wxString *) &wxEmptyString;
+ wxString * _arg6 = (wxString *) &wxPyEmptyString;
+ wxString * _arg7 = (wxString *) &wxPyEmptyString;
PyObject * _argo0 = 0;
PyObject * _obj3 = 0;
PyObject * _argo4 = 0;
const wxString& label,
const wxBitmap& bitmap,
const wxBitmap& bmpDisabled = wxNullBitmap,
- const wxString& shortHelp = wxEmptyString,
- const wxString& longHelp = wxEmptyString,
+ const wxString& shortHelp = wxPyEmptyString,
+ const wxString& longHelp = wxPyEmptyString,
PyObject *clientData = NULL)
{
wxPyUserData* udata = NULL;
const wxString& label,
const wxBitmap& bitmap,
const wxBitmap& bmpDisabled = wxNullBitmap,
- const wxString& shortHelp = wxEmptyString,
- const wxString& longHelp = wxEmptyString,
+ const wxString& shortHelp = wxPyEmptyString,
+ const wxString& longHelp = wxPyEmptyString,
PyObject *clientData = NULL)
{
wxPyUserData* udata = NULL;
const wxBitmap& bitmap,
const wxBitmap& bmpDisabled = wxNullBitmap,
wxItemKind kind = wxITEM_NORMAL,
- const wxString& shortHelp = wxEmptyString,
- const wxString& longHelp = wxEmptyString,
+ const wxString& shortHelp = wxPyEmptyString,
+ const wxString& longHelp = wxPyEmptyString,
PyObject *clientData = NULL)
{
wxPyUserData* udata = NULL;
const wxString& label,
const wxBitmap& bitmap,
wxItemKind kind = wxITEM_NORMAL,
- const wxString& shortHelp = wxEmptyString,
- const wxString& longHelp = wxEmptyString)
+ const wxString& shortHelp = wxPyEmptyString,
+ const wxString& longHelp = wxPyEmptyString)
{
return self->InsertTool(pos, id, label, bitmap, wxNullBitmap, kind,
shortHelp, longHelp);
# Create toolbar
tb = self.CreateToolBar(wxTB_HORIZONTAL | wxNO_BORDER | wxTB_FLAT)
tb.SetToolBitmapSize((24, 23))
- tb.AddSimpleTool(wxID_NEW, images.getNewBitmap(), 'New', 'New file')
- tb.AddSimpleTool(wxID_OPEN, images.getOpenBitmap(), 'Open', 'Open file')
- tb.AddSimpleTool(wxID_SAVE, images.getSaveBitmap(), 'Save', 'Save file')
+ tb.AddSimpleTool(wxID_NEW, '', images.getNewBitmap(), 'New', 'New file')
+ tb.AddSimpleTool(wxID_OPEN, '', images.getOpenBitmap(), 'Open', 'Open file')
+ tb.AddSimpleTool(wxID_SAVE, '', images.getSaveBitmap(), 'Save', 'Save file')
tb.AddControl(wxStaticLine(tb, -1, size=(-1,23), style=wxLI_VERTICAL))
- tb.AddSimpleTool(wxID_CUT, images.getCutBitmap(), 'Cut', 'Cut')
- tb.AddSimpleTool(wxID_COPY, images.getCopyBitmap(), 'Copy', 'Copy')
- tb.AddSimpleTool(wxID_PASTE, images.getPasteBitmap(), 'Paste', 'Paste')
+ tb.AddSimpleTool(wxID_CUT, '', images.getCutBitmap(), 'Cut', 'Cut')
+ tb.AddSimpleTool(wxID_COPY, '', images.getCopyBitmap(), 'Copy', 'Copy')
+ tb.AddSimpleTool(wxID_PASTE, '', images.getPasteBitmap(), 'Paste', 'Paste')
tb.AddControl(wxStaticLine(tb, -1, size=(-1,23), style=wxLI_VERTICAL))
- tb.AddSimpleTool(self.ID_TEST, images.getTestBitmap(), 'Test', 'Test window')
- tb.AddSimpleTool(self.ID_REFRESH, images.getRefreshBitmap(),
+ tb.AddSimpleTool(self.ID_TEST, '', images.getTestBitmap(), 'Test', 'Test window')
+ tb.AddSimpleTool(self.ID_REFRESH, '', images.getRefreshBitmap(),
'Refresh', 'Refresh view')
- tb.AddSimpleTool(self.ID_AUTO_REFRESH, images.getAutoRefreshBitmap(),
+ tb.AddSimpleTool(self.ID_AUTO_REFRESH, '', images.getAutoRefreshBitmap(),
'Auto-refresh', 'Toggle auto-refresh mode', true)
if wxGetOsVersion()[0] == wxGTK:
tb.AddSeparator() # otherwise auto-refresh sticks in status line
wc.Flush()
def main():
- app = App()
+ app = App(0)
app.MainLoop()
app.OnExit()