X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/demo/MDIDemo.py diff --git a/wxPython/demo/MDIDemo.py b/wxPython/demo/MDIDemo.py index ad86693e55..43a1d170df 100644 --- a/wxPython/demo/MDIDemo.py +++ b/wxPython/demo/MDIDemo.py @@ -1,16 +1,9 @@ -#!/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 @@ -53,7 +46,7 @@ class MyParentFrame(wx.MDIParentFrame): 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) @@ -73,7 +66,7 @@ class MyParentFrame(wx.MDIParentFrame): 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