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
11
votes
1 answer

wxPython: Items in BoxSizer don't expand horizontally, only vertically

I have several buttons in various sizers and they expand in the way that I want them to. However, when I add the parent to a new wx.BoxSizer that is used to add a border around all the elements in the frame, the sizer that has been added functions…
Peter Horne
  • 6,472
  • 7
  • 39
  • 50
10
votes
3 answers

Why does wxWidgets not leak Frames?

I'm trying to learn wxWidgets, but I'm stuck on a point which I can't find an explanation for anywhere in the documentation. I am trying to understand this minimal wxWidgets program: #include class MyApp : public wxApp { virtual bool…
Mankarse
  • 39,818
  • 11
  • 97
  • 141
10
votes
1 answer

wxPython: How do I find out which widget has the focus?

How do I find out which widget in my wx.Frame has the focus?
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
10
votes
1 answer

Using SDL2 with wxWidgets 3.0

My goal is to build a Game Boy emulator. In order to do this, I would like to embed an SDL2 surface into a wxWidgets window. I found this tutorial: http://code.technoplaza.net/wx-sdl/part1/, but my program crashes as soon as I run it. However I…
DanB91
  • 1,399
  • 1
  • 13
  • 23
10
votes
3 answers

wxWidgets and Golang

I want to develop a programm in Go with a multi-OS GUI in wxWidgets, my dev environment is WinXP x86. I wanted to use the wxWidgets Go wrapper wxGo, but the documentation is very succint and the project seems dead since 2 years. I encountered some…
Lomanic
  • 371
  • 4
  • 15
9
votes
4 answers

How to make a wxFrame behave like a modal wxDialog object

Is is possible to make a wxFrame object behave like a modal dialog box in that the window creating the wxFrame object stops execution until the wxFrame object exits? I'm working on a small game and have run into the following problem. I have a main…
dagorym
  • 5,695
  • 3
  • 25
  • 23
9
votes
4 answers

How I can set gap in Vertical BoxSizer?

How can I set gap in Vertical BoxSizer? What's in the Vertival BoxSizer the similar or alternative method of SetVGap (which sets the vertical gap (in pixels) between the cells in the sizer) in GridSizer?
G-71
  • 3,626
  • 12
  • 45
  • 69
9
votes
1 answer

How does Windows close a program when shutting down the computer?

My application throws some strange errors if you shut down the computer while my application is running. Sometimes the message is (address) memory can not be "read", sometimes can not be "write". Shutting down the application in the normal way…
Neka
  • 1,574
  • 4
  • 22
  • 36
9
votes
3 answers

How to create a QWidget with a HWND as parent?

With wxWidgets I use the following code: HWND main_window = ... ... wxWindow *w = new wxWindow(); wxWindow *window = w->CreateWindowFromHWND(0, (WXHWND) main_window); How do I do the same thing in Qt? The HWND is the handle of the window I want as…
Anders Sandvig
  • 20,720
  • 16
  • 59
  • 73
9
votes
2 answers

Get text when enter is pressed in a text box in wxPython

I have a (single line) TextCtrl. The user types data into this. When they press enter, the contents of the box need to be extracted so they can be processed. I can't figure out how to catch enter being pressed. According to the docs, with the style…
Sam
  • 439
  • 5
  • 10
9
votes
4 answers

Why isn’t EVT_CLOSE fired when I click the OK or Cancel buttons in a wx.Dialog?

I have a wx.Dialog subclass that needs to perform a couple of cleanup operations when the user clicks the OK button. The wx.Dialog documentation says that clicking OK or Cancel should emit an EVT_CLOSE event: EVT_CLOSE: The dialog is being closed…
bdesham
  • 15,430
  • 13
  • 79
  • 123
9
votes
2 answers

A terminal-like window for wxWidgets?

I'm looking to add an element to my wxWidgets GUI that behaves like a terminal emulator. Not in terms of a shell which executes commands, but just the input-output setup of an application running in a terminal. Basically, the requirements…
Jeremy Salwen
  • 8,061
  • 5
  • 50
  • 73
9
votes
2 answers

Making a Windows .exe with gui2exe does not work because of missing MSVCP90.dll

I'm trying to compile my python script into a single .exe using gui2exe (which uses py2exe to create a .exe). My program is using wxWidgets and everytime I try to compile it I get the following error message: error MSVCP90.dll: No such file or…
Kredns
  • 36,461
  • 52
  • 152
  • 203
9
votes
1 answer

How can you calculate the percentage overlap of two rectangles?

I wrote a drawing function that draws various on-screen sprites. These sprites can only overlap up to a point. If they have to much overlap, they become too obscured. As a result I need to detect when these sprites are too much overlapped. Luckily,…
max
  • 1,020
  • 1
  • 15
  • 25
9
votes
2 answers

How to add an outline border to a widget?

How can I add a outline border to a widget in wxpython? (Any widget, for example, a wx.Button)
user1513192
  • 1,123
  • 4
  • 17
  • 29