/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/multiplechoicedialog.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/multiplechoicedialog.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2239 by bh, Mon Jun 14 10:15:03 2004 UTC revision 2700 by dpinte, Mon Sep 18 14:27:02 2006 UTC
# Line 16  of the wxPython Library be used directly Line 16  of the wxPython Library be used directly
16    
17  __version__ = "$Revision$"  __version__ = "$Revision$"
18    
19  from wxPython.wx import *  import wx
 from wxPython import wx  
 from wxPython.lib.layoutf import Layoutf  
20    
21  class wxMultipleChoiceDialog(wx.wxDialog):  class wxMultipleChoiceDialog(wx.Dialog):
22      """This is a copy of the class wxPython.lib.dialogs.wxMultipleChoiceDialog      """This is a copy of the class wxPython.lib.dialogs.wxMultipleChoiceDialog
23      and fixes the bug that the style now is passed on (this is fixed      and fixes the bug that the style now is passed on (this is fixed
24      in version wxPython 2.4.1).      in version wxPython 2.4.1).
25      """      """
26      def __init__(self, parent, msg, title, lst, pos = wxDefaultPosition,      def __init__(self, parent, msg, title, lst, pos = wx.DefaultPosition,
27                   size = (200,200), style = wxDEFAULT_DIALOG_STYLE):                   size = (200,200), style = wx.DEFAULT_DIALOG_STYLE):
28          wxDialog.__init__(self, parent, -1, title, pos, size, style)          wx.Dialog.__init__(self, parent, -1, title, pos, size, style)
29          x, y = pos          x, y = pos
30          if x == -1 and y == -1:          if x == -1 and y == -1:
31              self.CenterOnScreen(wx.wxBOTH)              self.CenterOnScreen(wx.wxBOTH)

Legend:
Removed from v.2239  
changed lines
  Added in v.2700

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26