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
0 answers

Add shadow to the frame/panel/label/... in wx Python

I mainly use C++ and Qt but now I'm forced to code some python stuff. I'm wondering if it is possible to add fancy shadow to python's wx gui elements? Something similar that can be done with Qt/C++: QGraphicsDropShadowEffect *g1 = new…
mirx
  • 606
  • 1
  • 9
  • 21
1
vote
2 answers

How can I initialize wx.Font objects before the wx.App is created?

My application has a module called gui_constants that contains the definitions of all of the fonts and colors used by my application. For example, gui_constants.py might contain a line like heading_font = wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD,…
bdesham
  • 15,430
  • 13
  • 79
  • 123
1
vote
1 answer

Drawing on a Panel within a Sizer

I'm attempting to make a wx.Panel derived class that will display rotated text. However, the moment this widget is added to a wx.Sizer, the text no longer displays. When it is added directly to a wx.Frame, the text displays but is truncated. What am…
Chinmay Kanchi
  • 62,729
  • 22
  • 87
  • 114
1
vote
1 answer

wx.RichTextCtrl - How to remove blinking cursor from rich text ctrl box?

I'm using C++. A simple rich text ctrl box with some sentences. I'm using this because I require the scroll. My problem is the blinking cursor at the start of the text (As shown in the image below) I searched the internet and found this piece of…
Jurgen Cuschieri
  • 658
  • 14
  • 33
1
vote
1 answer

Installing more than one active variant using macports

I am using macports to install wxWidgets. I would like both the release and debug version of the library installed I used macports to install the release version by running sudo port install wxwidgets, and then used sudo port install wxwidgets…
cquillen
  • 1,287
  • 2
  • 9
  • 14
1
vote
1 answer

Adding a text control window to a wxMessageDialog box/AboutDialogInfo in wxPython

I am working with python v2.7 and wxPython v3.0 on Windows 7 OS. In my app I have a about menu. Upon clicking the about menu I want to display some information about my app. I am trying to create a dialog box/AboutBox exactly as shown in the image…
ρss
  • 5,115
  • 8
  • 43
  • 73
1
vote
2 answers

Crashing of the app with wx.CallAfter() in a while infinite loop in wxPython/python

I am working with python v2.7 and wxPython v3.0 on windows 7 OS. In the following code snippet I have implemented a publisher-subscriber mechanism to update my GUI. I am using wx.CallAfter() for sending the updates to my GUI main loop. Problem: Why…
ρss
  • 5,115
  • 8
  • 43
  • 73
1
vote
2 answers

wxwidgets fast regular data update

I want to update list's row or grid's cell in wxwidgets using a loop or with a callback function which is called 10 times in a second. But app waits until the last run of the loop and then shows the last value. I tried refresh() and ForceRefresh()…
1
vote
0 answers

wxFileDialog::GetPath() returning "/" on Ubuntu, fine on Windows

wxFileDialog* ctrl = new wxFileDialog(this, L"Open", "/home/example", "example.test", "|All files (*.*)|*.*", wxFD_OPEN | wxFD_FILE_MUST_EXIST, wxDefaultPosition); if(ctrl->ShowModal() == wxID_OK) { ctrl->GetPath().wx_str()); // =…
BageDevimo
  • 51
  • 4
1
vote
3 answers

Is it possible to draw on a TextCtrl? And if so, how?

I'm trying to elaborate a TextCtrl with some line drawings: simple stuff I want to draw on the text, next to it, between lines, etc. And I'm approaching drawing in Wx like I've done it before, on WxPanels: with DCs: $dc->DrawLine( 15, 15, 120, 120);…
isync
  • 537
  • 6
  • 15
1
vote
5 answers

Graphically laying out wx app

Being really new to wx, I'm wondering if there is an IDE (especially for Linux) which would help me lay out a frame or dialog or whatever just to help me see what I'm doing. That means also creating the code for those changes. I remember way back…
Tanktalus
  • 21,664
  • 5
  • 41
  • 68
1
vote
3 answers

Simple way to display thumbnails using wxPython

I am looking for a simple solution to display thumbnails using wxPython. This is not about creating the thumbnails. I have a directory of thumbnails and want to display them on the screen. I am purposely not using terms like (Panel, Frame, Window,…
Karr
  • 127
  • 12
1
vote
2 answers

How compiling wxwidgets app staticaly?

I compiling my program in normal way. mkdir mystatic cd mystatic make g++ `./wx-config --static=yes --libs` `./wx-config --static=yes --cxxflags` etc but when I type ldd application I get many library. linux-gate.so.1 => (0xb76e7000) …
1
vote
1 answer

wxPython - wx.StaticText not aligning properly

As you can see, none of those wx.StaticText items align properly when it starts, once you try to resize the window, then it's all working. Sample code: self.CodeTitleStaticText = wx.StaticText(id=wxID_MAINFRAMECODETITLESTATICTEXT, …
Shane
  • 4,875
  • 12
  • 49
  • 87
1
vote
1 answer

why mingw32 and tdm-gcc64 behave differently using external gcc

I am trying to cabal install a component of wxHaskell (Haskell platform 2013.2 against wxWidgets 3.0). I was able to compile the git version with 32 bit mingw from mingw.org. But in the end, the installed wx cannot function correct, and running a…
thor
  • 21,418
  • 31
  • 87
  • 173