Questions tagged [wxpython]

wxPython is a Python wrapper for the cross-platform C++ GUI API wxWidgets.

wxPython is a GUI toolkit for the Python programming language. It allows Python programmers to create programs with a robust, highly functional graphical user interface, simply and easily. It is implemented as a Python extension module (native code) that wraps the popular wxWidgets cross-platform GUI library, which is written in C++.

Resources

Books

6954 questions
1
vote
1 answer

automatic resizing of table in wx

When using wx.grid for creating table with wxpython, how can I automatically extend the number of rows and columns in the table once the user resizes the frame? If I create 5*5 table(grid) to fit on my frame and user resizes the frame( say, makes…
Jack_of_All_Trades
  • 9,565
  • 13
  • 52
  • 80
1
vote
1 answer

wxPython - blank frame in Ubuntu

I've written a basic application in wxPython. While it works fine under Windows, under Linux (Ubuntu 11.10), the frame will appear empty (except for a few small broken elements on the left hand side). There are no errors in the console. Just before…
Caligari
  • 1,131
  • 2
  • 9
  • 14
1
vote
1 answer

Cross-Platform GUI development between wxPython and Mono

I've been thinking to give GUI development a try lately and am torn with the choice of between wxPython and Mono. Judging from what I've seen out there, wxPython people seem to use the WebKit trick to produce nice (doesn't have to be beautiful) UI.…
edwin.nathaniel
  • 992
  • 1
  • 9
  • 15
1
vote
1 answer

wxpython file opening dialog

Why is this wxpython code giving me the following error? self.Bind(wx.EVT_MENU,self.onNewFile,self.New_File) def onNewFile(self,evt): wx.FileDialog(None,'Choose a file',os.getcwd(),"",wx.OPEN) if dialog.ShowModal() == wx.ID_OK: …
Jack_of_All_Trades
  • 9,565
  • 13
  • 52
  • 80
1
vote
3 answers

WxPython differences between Windows and Linux

The tutorials I've found on WxPython all use examples from Linux, but there seem to be differences in some details. For example, in Windows a Panel behind the widgets is mandatory to show the background properly. Additionally, some examples that…
Javier
  • 4,272
  • 6
  • 32
  • 45
1
vote
1 answer

How to take data from mysql db and insert them into a wx.ComboBox with mysqldb in Python

I create a panel in wxpython, plus i have a database(MySQLdb), then i select some data from my database and i want to insert them in a wx.Combobox(dropdown), after that if the choice is A choice or B choice i want to insert some other data from…
TLSK
  • 265
  • 1
  • 6
  • 23
1
vote
1 answer

How can I handle a mouseMiddleDrag event in PythonCard?

I would like to use the middle mouse button to drag an image in an application written in Python and using PythonCard/wxPython for the GUI. The latest version of PythonCard only implements a "left mouse button drag" event and I am trying to modify…
JcMaco
  • 1,208
  • 3
  • 16
  • 31
1
vote
1 answer

How to highlight a button as the next logical action, in wxpython

Dialogs in a lot of programs have one button highlighted to suggest a logical next move. On my Mac, it's usually pulsing blue. How do I do that in wxpython?
John Seales
  • 424
  • 3
  • 10
1
vote
2 answers

How to get clicks on disabled buttons with wxpython?

I have a disabled button, and it does not receive clicks when I use EVT_BUTTON on it. Is there a way to receive clicks even when it has been Disabled()?
thelost
  • 645
  • 3
  • 11
  • 26
1
vote
2 answers

MenuItem appended to PopupMenu is not showing bitmap with wxPython

With Python 2.7 on Linux. I'm creating MenuItem objects from a list of strings. I am setting the bitmap using wx.MenuItem.SetBitmap(), but the images are not showing on the popup menu. This is my method on creating the PopupMenu: def…
kaneda
  • 5,595
  • 5
  • 42
  • 70
1
vote
4 answers

How do I synchronize data between an editable ListCtrl and a data source?

I'm trying to build a prototype application that consists of a table of data linked to a graph, which will be displayed alongside the table and updated as the data changes. For the table I'm using a ListCtrl-derived object and, because I want to be…
MatthewD
  • 2,189
  • 2
  • 20
  • 26
1
vote
3 answers

Hide the "Failed to load" message when loading an invalid image, wxpython

bmp = wx.Image("C:\User\Desktop\cool.bmp", wx.BITMAP_TYPE_ANY).ConvertToBitmap() If i run this, it will automatically show an error message saying that it failed to load the image. How can I stop my program from doing this?
thelost
  • 645
  • 3
  • 11
  • 26
1
vote
2 answers

Assiociate Widgets into Groups, for Hide and Show, wxpython

I have a bunch of widgets and right now I am using Hide() and Show() to each widget individually when I flip through different sections/pages of my program. Because I did this, You can see each widget leaving/showing one by one (which kinda…
thelost
  • 645
  • 3
  • 11
  • 26
1
vote
1 answer

My wxPython widget freezes my program after activating another function

When I start the program, it runs fine. But when I press the Countdown Button, and then attempt to activate the Action Button, it freezes. import wx import time class LeftPanel(wx.Panel): def __init__(self, parent, id): …
JoryRFerrell
  • 33
  • 2
  • 16
1
vote
1 answer

COMBOBOX is not vertically sizable wxpython

i am wondering if there is a way to size a combobox vertically This does not work self.combo1 = wx.ComboBox(self, -1, value='dsadas', pos=wx.Point(10, 30), size=wx.Size(120, 423450), choices=areaList) It will size for x but it will not…
thelost
  • 645
  • 3
  • 11
  • 26
1 2 3
99
100