Hi Robin,
If I don't copy the source from my SVN checkout to the installed version, e.g. r73873 the whole file is shown as changed.
In other words I make changes in wx.lib.floatcanvas then copy the file to by SVN check out and then generate a patch it shows the whole file as changed, could it be that the code in e.g. r73873 uses different line endings?
Most of them work now, I attach a patch to get rid of deprecation warnings in them - should I add "phoenix-port" flag to them?
Note that the following samples have problems which I can't figure out.
MovingPlot when clicking on "Run" throws this exception:
AssertionError:
File "h:\devProjectsT\wxPhoenix\samples\floatcanvas\MovingPlot.py", line 236, in <module>
app.MainLoop()
File "c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\core.py", line 1859, in MainLoop
rv = wx.PyApp.MainLoop(self)
File "h:\devProjectsT\wxPhoenix\samples\floatcanvas\MovingPlot.py", line 176, in RunTest
wx.EVT_TIMER(self,self.timerID, self.OnTimer)
File "c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\core.py", line 79, in deprecated_func
return item(*args)
File "c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\core.py", line 1292, in __call__
assert len(args) == 2 + self.expectedIDs
SplitterWindow seems to be missing SetSashSize:
AttributeError: 'SplitterWindow' object has no attribute 'SetSashSize'
File "h:\devProjectsT\wxPhoenix\samples\floatcanvas\SplitterWindow.py", line 71, in <module>
app = MyApp(0)
File "c:\Python27\Lib\site-packages\wx-2.9.6-msw-phoenix\wx\core.py", line 1830, in __init__
self._BootstrapApp()
File "h:\devProjectsT\wxPhoenix\samples\floatcanvas\SplitterWindow.py", line 66, in OnInit
frame = MyFrame(None, title='splitter test')
File "h:\devProjectsT\wxPhoenix\samples\floatcanvas\SplitterWindow.py", line 57, in __init__
splitter.SetSashSize(10)
MovingTriangle:
Sometimes closes without showing the frame, for me every second or third time.
Have a nice weekend
Werner
floatcanvas samples.patch (31.7 KB)
floatcanvas 3.patch (4.91 KB)