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

Lua wxwidgets wxListCtrl

How do I obtain the index of a line when it is clicked? lpanelList:Connect(ID_REL_LIST, wx.wxEVT_COMMAND_LEFT_CLICK, function (event) local number number = GetIndex() --generates an error frame:SetStatusText("REL…
1
vote
2 answers

hidden information in wxGrid

I've got a wxGrid that I populate dynamically. I'd like to store some information with each row that shouldn't be displayed to the user. What is the best way to associate data with a row? Should I just create a hidden column or is there a better…
epotter
  • 7,631
  • 7
  • 63
  • 88
1
vote
1 answer

wxTextCtrl - set text wrapping runtime

I intend to provide a text wrapping functionality option to my wxPython-based application to be switched ON and OFF from menu (like, say notepad++ allows it). I have a wxTextCtrl and read in wxWidgets documentation that I have to manipulate the…
Nikita Vorontsov
  • 194
  • 2
  • 15
1
vote
0 answers

Scaling the size of RadioButton widget in wx.Python?

I'm trying to scale a RadioButton widget to the size of the window; with the code below, I get something like this: The button didn't look scaled to me at first - the only way I could determine that it is, in fact, scaled, is through a mouseover…
sdaau
  • 36,975
  • 46
  • 198
  • 278
1
vote
2 answers

Does using wxWidgets only for easier Win32 Programming make sense?

I'm writing a GUI Applikation which needs to use native Windows Controls. I'm also using a very exotic programming language with an otherwise complete runtime library. This means i have to write a GUI toolkit language binding anyway. Without the…
Lothar
  • 12,537
  • 6
  • 72
  • 121
1
vote
1 answer

How to refresh in wxWidgets, C++

I'm making a sudoku-game for a class in school and as you might have guessed i'm using wxWidgets with C++. My problem is that when I want to create a new Board with diffrent values in the squares I don't know how to refresh the program. I create…
Ramo Mislimi
  • 184
  • 1
  • 1
  • 11
1
vote
1 answer

Frame without borders and default controls. Sizers doesn't work

I try to write small GUI programm for windows using wx and wxFrame. I have this code in ctor: MainFrame::MainFrame(wxPoint pos) : wxFrame(NULL, wxID_ANY, wxT("Sample text"), pos, wxDefaultSize, wxBORDER_NONE | wxFRAME_NOTASKBAR) { …
Neka
  • 1,574
  • 4
  • 22
  • 36
1
vote
1 answer

Populate wxChoice at Start of Program Run | Python

As soon as my program is run, I want my wxChoice to be populated with items from a list I designate. I am using wxFormBuilder to handle the GUI elements of my program. My code: def onDropDownSelection(self, parent): #Open designated file…
Philip McQuitty
  • 1,077
  • 9
  • 25
  • 36
1
vote
1 answer

Enter key in wx.TextCtrl on Mac has no effect

When I run the program below on Mac OS X Yosemite, pressing the enter key inside the TextCtrl doesn't have any effect on the contents of the TextCtrl at all (I need it to enter a newline in the text). Adding or removing the TE_PROCESS_ENTER style…
rje
  • 6,388
  • 1
  • 21
  • 40
1
vote
1 answer

Gnuplot is not creating a plot window

I spent hours on fixing this and now I am posting this here. So I am using Ubuntu 12.04 and installed gnuplot 4.6.6 from source code (I find the same problem with gnuplot 4.4 also). Initially my issue was similar to this one. I then followed the…
Peaceful
  • 4,920
  • 15
  • 54
  • 79
1
vote
2 answers

Exception on prepared statement reuse in wxSQLite3

I'm writing an application that uses the wxSQLite3 library, which is a wrapper around libsqlite3 for the wxWidgets cross-platform GUI programming framework. When attempting to reuse a prepared statement, a wxSQLite3Exception is thrown. This example…
Chris
  • 600
  • 1
  • 5
  • 11
1
vote
1 answer

wxPython: Setting focus with a wx.PostEvent does not work if destroying a modal dialog

I am having trouble with setting the focus of a button AFTER a modal dialog is destroyed. Is there a call I can make to destroy the modal dialog or to stop it from being modal and then destroy it? When the wx.PostEvent triggers an event it forces a…
Har
  • 3,727
  • 10
  • 41
  • 75
1
vote
1 answer

wxFreeChart and -mthreads

I’m trying to develop some plotting apps for Windows platform. I’m using Debian and built wxWidgets for cross-compiling as described here. With MinGW compiler it works perfect and I have no problem with creating Win32 apps under Linux. But I faced…
user3414386
1
vote
0 answers

getting font size in pixels

At the moment I define the size of a grid-row-size static with self.myGrid.SetDefaultRowSize(16) I know thats not pretty, but until now there were no trouble with this solution. But when using Windows scaling option for display( best resolution,…
alabamajack
  • 642
  • 8
  • 23
1
vote
0 answers

How to use wx.Slider as scroller for a simple wx.Panel?

I am creating a simple wx.Dialog box for my wxPython application. I have a panel inside that dialog box with many widgets and the size of the panel is larger than the dialog box. I want to scroll that panel using a wx.Slider. I don't want to use…
Samyak
  • 109
  • 2
  • 8