#
# o 2.5 compatability update.
#
+# 12/20/2003 - Jeff Grimmett (grimmtooth@softhome.net)
+#
+# o wxPopupDialog -> PopupDialog
+# o wxPopupControl -> PopupControl
+#
import wx
from wx.lib.buttons import GenButtonEvent
# Tried to use wxPopupWindow but the control misbehaves on MSW
-class wxPopupDialog(wx.Dialog):
+class PopupDialog(wx.Dialog):
def __init__(self,parent,content = None):
wx.Dialog.__init__(self,parent,-1,'', style = wx.BORDER_SIMPLE|wx.STAY_ON_TOP)
#---------------------------------------------------------------------------
-class wxPopupControl(wx.PyControl):
+class PopupControl(wx.PyControl):
def __init__(self,*_args,**_kwargs):
if _kwargs.has_key('value'):
del _kwargs['value']
def OnButton(self,evt):
if not self.pop:
if self.content:
- self.pop = wxPopupDialog(self,self.content)
+ self.pop = PopupDialog(self,self.content)
del self.content
else:
print 'No Content to pop'
# an alias
-wxPopupCtrl = wxPopupControl
+PopupCtrl = PopupControl