diff --git a/wxPython/demo/GridDragable.py b/wxPython/demo/GridDragable.py index 547b19ee94..b30467c209 100644 --- a/wxPython/demo/GridDragable.py +++ b/wxPython/demo/GridDragable.py @@ -176,16 +176,12 @@ class DragableGrid(gridlib.Grid): self.SetTable(table, True) # Enable Column moving - #>> TODO - renamer didn't get this one - gridmovers.wxGridColMover(self) - #>> TODO - Bind() not working here - gridmovers.EVT_GRID_COL_MOVE(self,self.GetId(),self.OnColMove) + gridmovers.GridColMover(self) + self.Bind(gridmovers.EVT_GRID_COL_MOVE, self.OnColMove, self) # Enable Row moving - #>> TODO - renamer didn't get this one - gridmovers.wxGridRowMover(self) - #>> TODO - Bind() not working here - gridmovers.EVT_GRID_ROW_MOVE(self,self.GetId(),self.OnRowMove) + gridmovers.GridRowMover(self) + self.Bind(gridmovers.EVT_GRID_ROW_MOVE, self.OnRowMove, self) # Event method called when a column move needs to take place def OnColMove(self,evt): diff --git a/wxPython/demo/wxFloatBar.py b/wxPython/demo/wxFloatBar.py index 3772682e03..c218731bb4 100644 --- a/wxPython/demo/wxFloatBar.py +++ b/wxPython/demo/wxFloatBar.py @@ -9,9 +9,13 @@ # o Issues - library has to be converted to work properly # with new namespace. # +# 12/18/2003 - Jeff Grimmett (grimmtooth@softhome.net) +# +# o wxFloatBar -> FloatBar +# import wx -import wx.lib.floatbar as float +import wx.lib.floatbar import images @@ -31,7 +35,7 @@ class TestFloatBar(wx.Frame): "Toggle the last tool to remove\nthe title.", (15,15) ) - tb = float.wxFloatBar(self, -1) + tb = wx.lib.floatbar.FloatBar(self, -1) self.SetToolBar(tb) tb.SetFloatable(1) tb.SetTitle("Floating!") @@ -73,7 +77,7 @@ class TestFloatBar(wx.Frame): self.log.WriteText("tool %s clicked\n" % event.GetId()) if event.GetId() == 60: - print event.GetExtraLong(), event.Checked(), event.GetInt(), self.tb.GetToolState(60) + print event.GetExtraLong(), event.IsChecked(), event.GetInt(), self.tb.GetToolState(60) if event.GetExtraLong(): self.tb.SetTitle("") @@ -93,7 +97,7 @@ def runTest(frame, nb, log): #--------------------------------------------------------------------------- overview = """\ -wxFloatBar is a subclass of wxToolBar, implemented in Python, which +FloatBar is a subclass of wx.ToolBar, implemented in Python, which can be detached from its frame. Drag the toolbar with the mouse to make it float, and drag it back, or diff --git a/wxPython/demo/wxHtmlWindow.py b/wxPython/demo/wxHtmlWindow.py index 0c6a0118a9..48b0706111 100644 --- a/wxPython/demo/wxHtmlWindow.py +++ b/wxPython/demo/wxHtmlWindow.py @@ -6,6 +6,10 @@ # # o got the wxpTag stuff working right. # +# 12/18/2003 - Jeff Grimmett (grimmtooth@softhome.net) +# +# o wxScrolledMessageDialog -> ScrolledMessageDialog +# import os import sys @@ -182,11 +186,11 @@ class TestHtmlPanel(wx.Panel): def OnViewSource(self, event): - import wx.lib.dialogs as dlgs + import wx.lib.dialogs source = self.html.GetParser().GetSource() - dlg = dlgs.wxScrolledMessageDialog(self, source, 'HTML Source') + dlg = wx.lib.dialogs.ScrolledMessageDialog(self, source, 'HTML Source') dlg.ShowModal() dlg.Destroy() diff --git a/wxPython/demo/wxMultipleChoiceDialog.py b/wxPython/demo/wxMultipleChoiceDialog.py index c2a0b6638a..e354d28070 100644 --- a/wxPython/demo/wxMultipleChoiceDialog.py +++ b/wxPython/demo/wxMultipleChoiceDialog.py @@ -6,9 +6,13 @@ # # o wx renamer not applied to lib. # +# 12/18/2003 - Jeff Grimmett (grimmtooth@softhome.net) +# +# o wxMultipleChoiceDialog -> MultipleChoiceDialog +# import wx -import wx.lib.dialogs as dlgs +import wx.lib.dialogs #--------------------------------------------------------------------------- @@ -16,9 +20,10 @@ def runTest(frame, nb, log): lst = [ 'apple', 'pear', 'banana', 'coconut', 'orange', 'etc', 'etc..', 'etc...' ] - dlg = dlgs.wxMultipleChoiceDialog(frame, - "Pick some from\n this list\nblah blah...", - "m.s.d.", lst) + dlg = wx.lib.dialogs.MultipleChoiceDialog( + frame, + "Pick some from\n this list\nblah blah...", + "m.s.d.", lst) if (dlg.ShowModal() == wx.ID_OK): print "Selection:", dlg.GetValue(), " -> ", dlg.GetValueString() @@ -34,7 +39,7 @@ overview = """\ This is a Python implementation of a dialog that is not yet implemented in wxWindows proper, so don't let the wxWindows documentation mislead you. -
wxMultipleChoiceDialog(self, parent, msg, title, lst,
+
MultipleChoiceDialog(self, parent, msg, title, lst,
pos = wx.wxDefaultPosition, size = (200,200), style = wx.wxDEFAULT_DIALOG_STYLE)
@@ -74,7 +79,7 @@ available.
-Additionally, wxMultipleChoiceDialog.lbox is a standard wxListBox which supports all
+Additionally, MultipleChoiceDialog.lbox is a standard wx.ListBox which supports all
methods applicable to that class.