Questions tagged [wxwidgets]

wxWidgets is a cross-platform GUI framework. It is written in C++ and has bindings for Python, Perl, Ruby, PHP, Erlang and even .Net. It also supports several mobile platforms including Windows Mobile, iPhone SDK and embedded GTK+.

Information:

Current stable version: 3.0.5
Current development version: 3.1.5
Old stable version: 2.8.12

Homepage:

http://www.wxwidgets.org/

Documentation:

Books:

4153 questions
1
vote
1 answer

How to change the current selection in a wxListbook from another thread?

How can I change the current selection in a wxListbook from another thread? When I pass the listbook's pointer to the thread and try to change the selection, the app crashes. What is a safe way of doing this? Is there some message I can send to it?
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
1
vote
1 answer

How to get My object, derived from wxFrame through wxTheApp->GetTopWindow()?

I'm not so good in OOP rules in C++. I have this Application OnInit() callback: bool Application::OnInit() { MainFrame *mainFrame = new MainFrame(); mainFrame->Show(); SetTopWindow(mainFrame); return true; } In MainFrame, derived…
Neka
  • 1,574
  • 4
  • 22
  • 36
1
vote
2 answers

Python: Python WX GUI app from stealing focus from console

I am running a Python console application (Linux console, app written in Python) where as part of the run, a Python GUI (wx) subprocess is started in many different places. Is there any way to let the wx GUI start without stealing focus from the…
1
vote
1 answer

wxWidgets video player

I want to play a video in a frame using wxSmith ( which is a wxWidgets extension ) . I've read the documentation from their website ( http://docs.wxwidgets.org/2.6.3/wx_wxmediactrl.html ) but I barely understood it . What I did by now : wxMediaCtrl*…
Antaka
  • 27
  • 2
  • 4
1
vote
1 answer

How to insert a copyright statement into files created by wxGlade?

I use wxGlade to create Python scripts, which use wxWidgets. wxGlade directly manipulates XML files, which describe the wxWidgets based GUI. Those files have the *.wxg extension. From the *.wxg files, it is possible to generate code which actually…
Omer Zak
  • 1,147
  • 2
  • 8
  • 25
1
vote
1 answer

Popup menu at the insertion point position in a wx.TextCtrl

Does somebody knows how to create a custom context menu in a TextCtrl object using wxPython ? For the moment, I could create a custom menu but this one appears at the mouse cursor position , when the original one appears at the text cursor position…
taalf
  • 179
  • 1
  • 10
1
vote
1 answer

wxWidgets: wxButton with both bitmap and text

I want my wxButton to have a black background and white text for it's label. I tried this sample code only I also tried it with wxButton and SetBitmapLabel. All I could manage was to get the bitmap to display, however I also want the button's text…
ChrisX
  • 334
  • 1
  • 5
  • 20
1
vote
1 answer

access wxFrame(s) & wxDialog(s) globally

I'm new to C++ and new to codelite and also new to wxCrafter. I'm trying to build some GUI apps, but I'm messed up about object passthrough in C++. I spent a few hours and I just understand a little bit of that. First, to pass variables between…
Wilson Luniz
  • 459
  • 2
  • 7
  • 18
1
vote
1 answer

IE Security Warning with widgets

I'm creating an ASP.NET application which uses Facebook Connect and fbml tags. It also uses the LinkedIn widget. When I run this app in any browser, there are no warnings and everything works. However, in IE, a message like this comes up: Security…
XSL
  • 2,965
  • 7
  • 38
  • 61
1
vote
1 answer

Avoid click to get out of wxPython TreeCtrl in a Notebook

Below is a very simple wxPython code creating a Notebook inside which are several panels containing TreeCtrl objects. Using it, I get a behavior I would like to avoid: When I click in a tree, then I cannot switch directly to another page of the…
taalf
  • 179
  • 1
  • 10
1
vote
2 answers

what wxYield() returns? Is it related to why my guauge is not updated?

I am using wxwidgets and I have a code like this: gaugeProgressFolders->SetRange(folderList.size()); for(int i=0;iSetValue(i+1); …
mans
  • 17,104
  • 45
  • 172
  • 321
1
vote
1 answer

Python - wxPython: Using wx.ClientDC drawing lines, which will disappear after minimize window

I want to draw some lines after click button. But when I minimize the window, or scroll the window in a ScrolledWindow, all the drawing will lost. Is there any way to keep them? Here is the code: import wx class Frame(wx.Frame): def…
HWW
  • 557
  • 2
  • 6
  • 15
1
vote
1 answer

How to disable maximize button in wxWidgets

I need to disable maximize for my wxWidgets program. What code should I add to my frame in order to do this?
Jessie
  • 363
  • 2
  • 6
  • 20
1
vote
1 answer

Triggering wx.EVT_COMBOBOX after programatically changing ComboBox selection?

As per the title, is there any way to programatically change the selected item in a ComboBox and have it raise an event? I am setting the selected item using myComboBox.SetSelection(index), but this doesn't raise the wx.EVT_COMBOBOX event.
Kevin
  • 13
  • 4
1
vote
4 answers

wxPython: what is preventing me from making a window smaller?

I have inherited a wxPython app (story of my life of late) and you cannot make the window any smaller (but you can make it larger). What could be preventing it from being resized smaller? What could I grep for to find what is causing this? The…
Larry Martell
  • 3,526
  • 6
  • 40
  • 76