Relative Content

Tag Archive for pythonwxpython

wx.python EditableListBox Background Colour not completely visible

Does someone know how do change the Item-BackgroundColour in an EditableListBox to the default value?
OnSearch the Background color should change when the search_item is found. That actually works the first time, but if cancel the first search and repeat the search(for example search_item is “5”) the Background color isn’t completely visible anymore. I use win10, python 3.8.10 and wx.python 4.2.1EditableListBox

How do I use wx.NewIdRef() correctly?

I’m on wxPython version 4.0.7.post2, and Python version 3.8.2. I’ve enabled warnings to catch the things I need to change in preparation for upgrading both Python and wxPython. One of the warnings I get is that wx.NewId() is deprecated. According to documentation, I should be using wx.NewIdRef(), which is supposed to be a drop-in replacement. Indeed, replacing all instances of wx.NewId() with wx.NewIdRef() works, but all the functions that take the id as a parameter trigger a new warning:

Python use wx.CallAfter into HttpServer

I am using python 2.7 and wxPython 2.8. I created a simple desktop application from which the user can start an HTTPServer created from the one builtin in python itself. Server is created in this way:

wxPython html2.webview does not load pages having GDPR pop-up

I want to modify a little bit an application that actually opens a web page using the default browser installed on the PC. I am trying using htnl2.WebView but unfortunately seems that I am not able to open the page I want because the GDPR pop-up opens over it and clicking the button has no effect. Instead on any common browser everything works perfectly. My code is quite simple so I do not understand if I missed something or if html2.WebView can not open a web site having this type of pop-up. Does anyone had similar problems?
Thanks,
Massimo