X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..60e424abd6a8a65837cda8fa98eee592a5da2678:/wxPython/demo/MDIDemo.py?ds=sidebyside diff --git a/wxPython/demo/MDIDemo.py b/wxPython/demo/MDIDemo.py index ad86693e55..6f65a039ff 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)