Open POMXARK opened 6 months ago
had to add
if platform.system() == "Linux":
self.btn = wx.Button(self, label='Х', size=(70, 30))
main_sizer.Add(self.btn, flag=wx.EXPAND | wx.ALL, border=14)
self.Bind(wx.EVT_BUTTON, self._Dismiss, self.btn)
main_sizer.Add(self.nodes_listbox, flag=wx.EXPAND | wx.ALL, border=5)
self.SetSizer(main_sizer)
def _Dismiss(self, event):
self.Dismiss()
or best
if platform.system() == "Linux":
self.Bind(wx.EVT_KILL_FOCUS, self.ClickOut)
def ClickOut(self, event):
self.Dismiss()
This is an issue on Windows as well, see https://github.com/marcelstoer/nodemcu-pyflasher/issues/80, all the way up to at least wxPython 4.2.0 (#2499 prevents the use of 4.2.1). Works on my Mac, though.
I wanted to explore the project, but I encountered an error. The window does not close when losing focus or clicking outside the area.
wx.PopupTransientWindow it works incorrectly
glcontext==2.5.0 gsnodegraph==0.5.5 gswidgetkit==0.3.2 moderngl==5.6.4 numpy==1.22.0 opencolorio==2.3.2 opencv-python==4.9.0.80 pillow==10.3.0 six==1.16.0 wxPython==4.2.0
Python 3.10.12
NAME="Linux Mint" VERSION="21.2 (Victoria)" ID=linuxmint ID_LIKE="ubuntu debian" PRETTY_NAME="Linux Mint 21.2" VERSION_ID="21.2" HOME_URL="https://www.linuxmint.com/" SUPPORT_URL="https://forums.linuxmint.com/" BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/" PRIVACY_POLICY_URL="https://www.linuxmint.com/" VERSION_CODENAME=victoria UBUNTU_CODENAME=jammy