From 84d5c1ded7b458b07890b56e99be5af310588684 Mon Sep 17 00:00:00 2001 From: Jorge Moraleda Date: Mon, 1 Aug 2022 17:18:42 -0500 Subject: [PATCH] Popup ctl respects the parameters passed to init --- wx/lib/popupctl.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wx/lib/popupctl.py b/wx/lib/popupctl.py index 236501f6..4017f473 100644 --- a/wx/lib/popupctl.py +++ b/wx/lib/popupctl.py @@ -148,12 +148,6 @@ class PopupDialog(wx.Dialog): class PopupControl(wx.Control): def __init__(self,*_args,**_kwargs): - if 'value' in _kwargs: - del _kwargs['value'] - style = _kwargs.get('style', 0) - if (style & wx.BORDER_MASK) == 0: - style |= wx.BORDER_NONE - _kwargs['style'] = style wx.Control.__init__(self, *_args, **_kwargs) self.textCtrl = wx.TextCtrl(self, wx.ID_ANY, '', pos = (0,0))