Show More
@@ -780,6 +780,19 b' class IGridFrame(wx.Frame):' | |||
|
780 | 780 | dlg.Destroy() |
|
781 | 781 | |
|
782 | 782 | |
|
783 | class App(wx.App): | |
|
784 | def __init__(self, input): | |
|
785 | self.input = input | |
|
786 | wx.App.__init__(self) | |
|
787 | ||
|
788 | def OnInit(self): | |
|
789 | frame = IGridFrame(self, self.input) | |
|
790 | frame.Show() | |
|
791 | self.SetTopWindow(frame) | |
|
792 | frame.Raise() | |
|
793 | return True | |
|
794 | ||
|
795 | ||
|
783 | 796 | class igrid(ipipe.Display): |
|
784 | 797 | """ |
|
785 | 798 | This is a wx-based display object that can be used instead of ``ibrowse`` |
@@ -787,10 +800,6 b' class igrid(ipipe.Display):' | |||
|
787 | 800 | """ |
|
788 | 801 | def display(self): |
|
789 | 802 | self.returnobj = None |
|
790 |
app = |
|
|
791 | self.frame = IGridFrame(self, self.input) | |
|
792 | self.frame.Show() | |
|
793 | app.SetTopWindow(self.frame) | |
|
794 | self.frame.Raise() | |
|
803 | app = App(self.input) | |
|
795 | 804 | app.MainLoop() |
|
796 | 805 | return self.returnobj |
General Comments 0
You need to be logged in to leave comments.
Login now