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

wxWidgets and NetBeans: Does not recognize files in "include"

Although finding , NetBeans complains error in and Build: g++ `wx-config --cxxflags` -o dist/Debug/GNU-Linux-x86/client build/Debug/GNU-Linux-x86/main.o -lpthread `wx-config --cxxflags` Project…
macabeus
  • 4,156
  • 5
  • 37
  • 66
1
vote
1 answer

OpenCV error loading video file on different machine

I have developed an application using wxWidgets and OpenCV 2.4.8. I am simply loading avi files from the disk using VideoCapture. The application works perfectly fine on the machine it is developed on. But when run on a different machine,…
user3411355
  • 13
  • 1
  • 3
1
vote
2 answers

wxPython/ReportLab: How to create and open a .pdf file on button clicked

Good day all, For about 3days I have been trying hardest to get my way around this! I have a perfectly working wxFrame as well as a perfectly working ReportLab pdf script. See the code files below respectively (Note: data1.py is the GUI while…
Umar Yusuf
  • 926
  • 2
  • 13
  • 30
1
vote
2 answers

convert wxGetLocalTimeMillis to wxDateTime

From the wxWidgets online docs, it seems that there is no direct way to create a wxDateTime directly from a wxLongLong value as returned e.g. from wxGetUTCTimeMillisor wxGetLocalTimeMillis. Hence I wonder if there is some obscure reason for this…
Hagen von Eitzen
  • 2,109
  • 21
  • 25
1
vote
1 answer

Text does not display when Show() is used, but does when ShowModal() is used. (wxPython)

I am analyzing an image and it takes a little while to process. I want to have a Dialog box pop up when a user clicks the 'Analyze' button. I need it to be modeless so it does not interrupt the flow of my application (so the analyzing actually…
SFBA26
  • 870
  • 3
  • 12
  • 24
1
vote
3 answers

How to set wxPython grid background color?

I'm working with a wxPython grid, but I cannot set the background color of it (the grid part that isn't filled with cells). I tried with grid.SetBackgroundColour, but without luck; the backcolor shown is always the default system color for…
PabloG
  • 25,761
  • 10
  • 46
  • 59
1
vote
0 answers

Python wx Notebook makes tabs VERY small

I've made a tab class like this: class TabPanel(wx.Panel): GRID_AREA = {} SURROUND_AREA = {} TOP_AREA = {} BORDER_AREA = {} OUTPUT_AREA = {} def __init__(self, parent): wx.Panel.__init__(self, parent = parent, id =…
ulak blade
  • 2,515
  • 5
  • 37
  • 81
1
vote
0 answers

SetTextSelection method of wx.ComboBox widget

I would like to implement auto-completion feature for wx.ComboBox widget. I do something like this in my init method: self.languages = ['english', 'german'] self.lexer = wx.ComboBox(self, -1, choices=self.languages,…
jsnjack
  • 2,630
  • 2
  • 21
  • 21
1
vote
1 answer

Python/wxPython: How to reset wx.Choice to a default value

Am working with multiple wx.Choice control in wxPython and I needed the make a reset button to restore the default option “-- Select --” when clicked. Am unable to achieve that, the closest I came is to reset to empty options which is NOT what is…
Umar Yusuf
  • 926
  • 2
  • 13
  • 30
1
vote
1 answer

wxpython simulating bitmap button click

I am trying to simulate a button click of a bitmap button. The code throws no errors and does nothing... self.buttonImage = wx.Bitmap(button_image, wx.BITMAP_TYPE_PNG) self.button = wx.BitmapButton(self, -1, self.buttonImage, pos=(100, 300), style =…
user3071933
  • 187
  • 1
  • 3
  • 10
1
vote
3 answers

GetValue method of wxTextCtrl class is crashing my app

I am trying to make an input box for my GUI app using wxTextCtrl. I've made the box but when I'm trying to take the input text from it, it crashes and I can't figure out why. Here is the code: main.cpp: int main(int argc, char** argv) { …
Daniel
  • 544
  • 1
  • 10
  • 21
1
vote
0 answers

Set a Bitmap to a Window-Object using wxPyhton

I want to set a Bitmap to a hole Window-Object. I tested to do it with __bmp = wx.Bitmap('/images/settings.bmp') dc = wx.WindowDC(the_window) dc.DrawBitmap(__bmp,0,0) but this doesn't work. Some tipps? One Problem is, that after creating the…
alabamajack
  • 642
  • 8
  • 23
1
vote
2 answers

can't build wxwidgets on Cygwin: ambiguous overload for ‘operator[]’ basedll_apebase.o error

I'm willing to bet I'm not configuring it right, but it's not brief on how I need to for wxWidgets_3_0 I get the following error: $ make /home/Bill/WX_3_0_BRANCH/build-debug/bk-deps g++ -c -o basedll_appbase.o -D__WXM SW__ -DWXBUILDING…
Iancovici
  • 5,574
  • 7
  • 39
  • 57
1
vote
0 answers

How to sort by column two wxListCtrl

i followed these samples [http://www.blog.pythonlibrary.org/2011/01/04/wxpython-wx-listctrl-tips-and-tricks/][1] and by working around it i managed to make my wxlistctrl editable for every element in it and i accomplished the sort by the column…
1
vote
1 answer

wxPython : How do I shrink the size of Button to the width of the label text?

I have a FlexGridSizer that I add a bunch of TextCtrl to, some of which are for users to enter a path, so I have a Button in the adjacent column to the right of those TextCtrl boxes. The label text is ... and I only call AddGrowableCol on the…
nmz787
  • 1,960
  • 1
  • 21
  • 35