More lib and demo changes for dropping the wx prefix, from Jeff G.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-12-20 19:36:30 +00:00
parent 2b0a7c092c
commit 33785d9f22
13 changed files with 83 additions and 45 deletions

View File

@@ -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):

View File

@@ -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

View File

@@ -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()

View File

@@ -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.
<p><code><b>wxMultipleChoiceDialog</b>(self, parent, msg, title, lst,
<p><code><b>MultipleChoiceDialog</b>(self, parent, msg, title, lst,
pos = wx.wxDefaultPosition, size = (200,200), style = wx.wxDEFAULT_DIALOG_STYLE)
</code>
@@ -74,7 +79,7 @@ available.
</dl>
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.
</body>

View File

@@ -10,9 +10,13 @@
#
# o dialogs library converted. All is well.
#
# 12/18/2003 - Jeff Grimmett (grimmtooth@softhome.net)
#
# o wxScrolledMessageDialog -> ScrolledMessageDialog
#
import wx
import wx.lib.dialogs as dlgs
import wx.lib.dialogs
#---------------------------------------------------------------------------
@@ -21,7 +25,7 @@ def runTest(frame, nb, log):
msg = f.read()
f.close()
dlg = dlgs.wxScrolledMessageDialog(frame, msg, "message test")
dlg = wx.lib.dialogs.ScrolledMessageDialog(frame, msg, "message test")
dlg.ShowModal()
#---------------------------------------------------------------------------
@@ -30,7 +34,7 @@ def runTest(frame, nb, log):
overview = """\
<code><b>wxScrolledMessageDialog</b>(parent, msg, caption, pos=wx.DefaultPosition, size=(500,300))</code>
<code><b>ScrolledMessageDialog</b>(parent, msg, caption, pos=wx.DefaultPosition, size=(500,300))</code>
This class represents a message dialog that uses a wxTextCtrl to display the
message. This allows more flexible information display without having to be