wxwidgets

When virtual doesn't work

I have a weird error in my C++ classes at the moment. I have an ActiveX wrapper class (as part of wxWidgets) that i added a new virtual function to. I have another class that inherits from the ActiveX one (wxIEHtmlWin) however the ActiveX class always calls its own function instead of the one in wxIEHtmlWin which overrides it. I can't w...

Using external GUI libraries to make user interfaces in Autodesk Maya

I develop tools in Autodesk Maya. Many of the tools I build have simple windowed GUIs for the animators and modellers to use. These GUIs often contain what you'd normally expect to see in any basic window; labels, lists, menus, buttons, textfields, etc. However, there are limitations to the complexity of the UIs you can build with the...

Send UDP broadcast message with wxWidgets

Using wxWidgets 2.8.9 on Mac/Win/Linux, how do I send a UDP broadcast message? Receiving is working using wxDatagramSocket, but it's not obvious to me how I would go about SENDING a UDP broadcast message. ...

Notifications in wxWidgets?

I'm working on a small application using C++/wxWidgets, where several parts of the GUI need to be updated based on e.g. received UDP datagrams. More specifically, a secondary thread tries to keep a list of available "clients" in the network (which may come and go away) and e.g. corresponding comboboxes in the UI need to be updated to ref...

Catch MainLoop exceptions and displaying them in MessageDialogs

I have a wxPython application that relies on an external config file. I want provide friendly message dialogs that show up if there are any config errors. I've tried to make this work by wrapping my app.MainLoop() call in a try/except statement. The code below works for the init code in my MainWindow frame class, but doesn't catch any...

How to do pretty OSD in Python

Is there a library to do pretty on screen display with Python (mainly on Linux but preferably available on other OS too) ? I know there is python-osd but it uses libxosd which looks quite old. I would not call it pretty. Maybe a Python binding for libaosd. But I did not find any. ...

How to make a wx Toolbar buttons larger?

I've got a wx.Toolbar and I'd like to make the buttons larger. I've searched and can't seem to find any concrete documentation on how to do this. I'm also wondering how well this will translate across platforms; what will happen to the buttons and icons on OSX? ...

What is the best real time plotting widget for wxPython?

I would like to show a read time graph with one or two curves an up to 50 samples per second using Python and wxPython. The widget should support both Win32 and Linux platforms. Any hints are welcome. Edited to add: I don't need to update the display at 50 fps, but up need to show up to 50 samples of data on both curves, with a reaso...

Window-overflowing widget in wxWidgets

Hi everyone! I'm looking for a way to implement this design in wxPython on Linux... I have a toolbar with a button, when the button is pressed a popup should appear, mimicking an extension of the toolbar (like a menu), and this popup should show two columns of radio buttons (say 2x5) and a text box... My main problem is that the toolbar ...

Qt being now released under LGPL, would you recommend it over wxWidgets ?

I am quite a heavy user of wxWidgets, partly because of licensing reasons. How do you see the future of wxWidgets in prospect of the recent announcement of Qt now being released under LGPL? Do you think wxwidget is still a good technical choice for new projects ? Or would you recommand adopting Qt, because it is going to be a de-facto ...

Receiving keystrokes in an opened wx.ComboCtrl

Hi everyone! Coming from this question, I have a wxComboCtrl with a custom popup made of a panel with a bunch of radiobuttons.. My problem is that when I open the popup the combo doesn't get keystrokes, because the events get handled by the panel itself.. I'd like to redirect those KeyEvents to the textctrl of the combo, but I can't find...

StaticText items disappear in wx.StaticBox

I'm creating a staticbox and a staticboxsizer in a vertical sizer. Everything works fine for me, but not on the customer's environment. Everything in the staticbox is displayed, but labels. snippet below shows how i construct the staticboxsizer. sbox2 = wx.StaticBox(self, wx.ID_ANY, 'CH1 Only') sboxsizer2 = wx.StaticBoxSizer(...

ScrolledWindow and wx.EVT_LEAVE_WINDOW

Hi everyone! I have a frame with a textctrl. When the mouse enters the textctrl (EVT_ENTER_WINDOW) I show a PopupWindow on top of the textctrl, and when the mouse leaves the popup (EVT_LEAVE_WINDOW) I hide it again. Everything works fine, except when inside the PopupWindow there's a ScrolledWindow with shown scrollbars. The EVT_LEAVE_WI...

Setting the width of a menu in the Windows API

I'm creating a custom control in wxWidgets that displays a menu as part of it, and currently working on the Windows side of things. wxWidgets doesn't have a way of setting the width of a menu. It just makes the window as wide as the longest string plus a few pixels on either side. In the API, there is a way to get the actual Windows A...

wxGLCanvas exits process

Hi! I have a problem with the OpenGL canvas of the wx library. When I use the method SwapBuffers of wxGLCanvas the whole process will be terminated with exit code 1. If I remove the method call the program runs on and on. Unfortunately there is no GL drawing as well. I think it is an internal problem of the wx library. Maybe due to som...

How to delete the Scrollbar in a class derived from wxHtmlListBox?

In widgets, I have a class named CListCtr which derived from wxHtmlListBox. The list contains 100 items, but I just want to show 10 items in one page and when I press button pagedown I will get another page to show another 10 items. I do not need the scrollbar. But it is always added when created the class. How can I delete the scrollba...

Is there to include elements from one xrc file in another xrc file

I've got an wx App that has the UI defined in XRC files. Each form is in its own xrc file. There is one panel that is common to many of the forms. Is there a way to have objects defined in one file that are included and referenced in another? I know there is a object_ref mechanism, but I can't see how that can reference external xrc fil...

wxPython - Redrawing Error when replacing wxFrame's Panel

Hello StackOverflow! I'm creating a small wxPython utility for the first time, and I'm stuck on a problem. I would like to add components to an already created frame. To do this, I am destroying the frame's old panel, and creating a new panel with all new components. 1: Is there a better way of dynamically adding content to a panel?...

Basic wxWidgets Timer

Being new to wxWidgets I need some example code of how to get the wxTimer working. The reference gives 3 ways to use it but doesn't include sample code for any of them. Optimally, I'd like to get method 2 working. ...

WxWidgets / GCC / MacOs X: How can I build and link the WxWidgets library properly?

Hi, I am trying to port a windows application based on WxWidgets 2.8.9 to MacOS X. I've gotten to the point where everything compiles successfully, except from a few missing symbols related to WxWidgets. I've tried compiling WxWidgets with the command line and with XCode and I've tried several different configuration options, but none o...