-#!/usr/bin/env python
-
-# 11/12/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o Updated for wx namespace
-# o Replaced hardcoded menu IDs with dynamic IDs
-#
import wx
-# Importing wxScrolledWindow demo to make use of the MyCanvas
+# Importing ScrolledWindow demo to make use of the MyCanvas
# class defined within.
-import wxScrolledWindow
+import ScrolledWindow
import images
SHOW_BACKGROUND = 1
def OnNewWindow(self, evt):
self.winCount = self.winCount + 1
win = wx.MDIChildFrame(self, -1, "Child Window: %d" % self.winCount)
- canvas = wxScrolledWindow.MyCanvas(win)
+ canvas = ScrolledWindow.MyCanvas(win)
win.Show(True)
y = 0
while y < sz.height:
- dc.DrawBitmap(self.bg_bmp, (x, y))
+ dc.DrawBitmap(self.bg_bmp, x, y)
y = y + h
x = x + w