Tagged Questions
10
votes
1answer
7k views
Embedding a matplotlib figure inside a WxPython panel
How do I embed a matplotlib figure object inside a WxPython panel?
I googled around and saw complicated examples involving interactive graphics and other extra stuff. Can anybody help with a minimal ...
44
votes
7answers
36k views
Programmatically generate video or animated GIF in Python?
I have a series of images that I want to create a video from. Ideally I could specify a frame duration for each frame but a fixed frame rate would be fine too. I'm doing this in wxPython, so I can ...
40
votes
11answers
36k views
py2exe fails to generate an executable
I am using python 2.6 on XP. I have just installed py2exe, and I can successfully create a simple hello.exe from a hello.py. However, when I try using py2exe on my real program, py2exe produces a few ...
26
votes
8answers
23k views
Nice IDE for wxPython or Tkinter GUI Development [closed]
I have a little experience developing small command-line applications with Python. I want to move on to developing GUIs with Python. From the available GUI toolkits for Python, the ones I feel the ...
9
votes
5answers
13k views
What is the best real time plotting widget for wxPython?
I would like to show a read time graph with one or two curves an up to 50 samples per second using Python and wxPython.
The widget should support both Win32 and Linux platforms.
Any hints are ...
14
votes
3answers
7k views
Quick and easy: trayicon with python?
I'd just need a quick example on how to easily put an icon with python on my systray. This means: I run the program, no window shows up, just a tray icon (I've got a png file) shows up in the systray ...
7
votes
4answers
12k views
18
votes
6answers
12k views
Undefined variable from import when using wxPython in pydev
I just downloaded wxPython, and was running some of the sample programs from here. However, on every line that uses a variable from wx.*, I get a "Undefined variable from import error"
For example, ...
22
votes
4answers
11k views
How to check if OS is Vista in Python?
How, in the simplest possible way, distinguish between Windows XP and Windows Vista, using Python and pywin32 or wxPython?
Essentially, I need a function that called will return True iff current OS ...
10
votes
5answers
12k views
“no matching architecture in universal wrapper” problem in wxPython?
I am running Python 2.7 under Mac OS 10.6.4, and I just installed wxPython from the wxPython2.8-osx-unicode-2.8.11.0-universal-py2.7.dmg binary. I am getting a weird error on the import wx line in my ...
24
votes
3answers
27k views
Python - No handlers could be found for logger “OpenGL.error”
Okay, what is it, and why does it occur on Win2003 server, but not on WinXP.
It doesn't seem to affect my application at all, but I get this error message when I close the application. And it's ...
4
votes
4answers
6k views
wx.TextCtrl and wx.Validator
I need to validate the textboxes with wx.Textvalidator.
Any please help me to do this?
How can i use wx.FILTER_ALPHA with validators and if the user is giving a wrong input how can i give them a ...
2
votes
2answers
147 views
Getting pyobjc object from integer id
Is there a way to get a PyObjC proxy object for an Objective-C object, given only its id as an integer? Can it be done without an extension module?
In my case, I'm trying to get a Cocoa proxy object ...
17
votes
6answers
11k views
WxPython Incompatible With Snow Leopard?
Recently I upgraded to Snow Leopard, and now I can't run programs built with wxPython. The errors I get are (from Eclipse + PyDev):
import wx
File ...
20
votes
4answers
9k views
How can I hide the console window when freezing wxPython applications with cxFreeze?
I'm developing a Python application using wxPython and freezing it using cxFreeze. All seems to be going fine apart from this following bit:
When I run the executable created by cxFreeze, a blank ...
19
votes
2answers
5k views
Is it possible to pass arguments into event bindings?
I haven't found an answer elsewhere and this doesn't appear to have been asked yet on SO.
When creating an event binding in wxPython, is it possible to pass additional arguments to the event? For ...
13
votes
1answer
4k views
Py2exe lxml woes
I have a wxpython application that depends on lxml and works well when running it through the python interpreter. However, when creating an exe with py2exe, I got this error
ImportError: No module ...
13
votes
7answers
5k views
Qt being now released under LGPL, would you recommend it over wxWidgets? [closed]
I am quite a heavy user of wxWidgets, partly because of licensing reasons.
How do you see the future of wxWidgets in prospect of the recent announcement of Qt now being released under LGPL?
Do you ...
10
votes
6answers
1k views
Python tools to visualize 100k Vertices and 1M Edges?
I'm looking to visualize the data, hopefully make it interactive. Right now I'm using NetworkX and Matplotlib, which maxes out my 8gb when I attempt to 'draw' the graph. I don't know what options ...
5
votes
1answer
3k views
How to detect motion between two PIL images? (wxPython webcam integration example included)
Does anyone have any suggestions as to how I might do image comparison in python to detect changes within an image? I'm currently working on an app that will monitor my area with my webcam, I would ...
7
votes
3answers
6k views
How can I redirect the logger to a wxPython textCtrl using a custom logging handler?
I'm using a module in my python app that writes a lot a of messages using the logging module. Initially I was using this in a console application and it was pretty easy to get the logging output to ...
4
votes
2answers
2k views
How can I freeze a dual-mode (GUI and console) application using cx_Freeze?
I've developed a Python application that runs both in the GUI mode and the console mode. If any arguments are specified, it runs in a console mode else it runs in the GUI mode.
I've managed to freeze ...
7
votes
1answer
3k views
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 ...
3
votes
2answers
2k views
making undo in python
first of all .. sorry if my english was bad. its my 3rd language
im working on a paint software that draw over images and save them again ( for commenting propose ) i use pile and wxpython.
but im ...
2
votes
2answers
2k views
Show another window wxpython?
I have been looking around the Internet but I am not sure if there is a way to show 2 classes in wxPython in 2 separate windows. And could we communicate between them (like one class being the dialog ...
0
votes
5answers
237 views
wxPython for image and buttons (resizable)
I want to put such an image in a wx.Panel :
The animals should be "buttons" so that if I click on them, their image changes, and if I reclick, the image returns to normal (thus the animals can be ...
7
votes
2answers
4k views
Building a Mac and Windows GUI Application
I am planning to build a GUI application for Mac and Windows. I've been doing some research in the technology choices, as in the language, libraries, and build tools, so that I can share as much code ...
5
votes
1answer
841 views
Fullscreen Python TKinter or wxPython window, but 'stay at the bottom' of all windows?
I want to create a fullscreen panel that visually blocks access to everything on the screen (desktop, menu, Unity Panel, etc in Ubuntu (11.10)), but stays below other applications' opened windows.
...
4
votes
1answer
4k views
How to update a plot with python and Matplotlib
I have been bashing my head against the wall trying to update a graph using matplotlib with python and wxpython. I want to press a button and add data to a graph nested in a wx.notebook. Below is ...
4
votes
7answers
3k views
Best way to get the name of a button that called an event?
In the following code (inspired by this snippet), I use a single event handler buttonClick to change the title of the window. Currently, I need to evaluate if the Id of the event corresponds to the Id ...
3
votes
2answers
2k views
wxpython — threads and window events
I have a wxPython application (http://www.OpenSTV.org) that counts ballots using methods that have multiple rounds. I'd like to do two things:
(1) For a large number of ballots, this can be a bit ...
3
votes
4answers
2k views
How to make custom buttons in wx?
I'd like to make a custom button in wxPython. Where should I start, how should I do it?
3
votes
2answers
2k views
wxPython menu doesn't display image
I am creating a menu and assigning images to menu items, sometime first item in menu doesn't display any image, I am not able to find the reason. I have tried to make a simple stand alone example and ...
2
votes
4answers
2k views
Cookbook GUI interface for a command-line script
I have a command-line Python script that works well to convert one sort of file into another given a few parameters and would now like to deploy this to some of my colleagues who may not know what a ...
1
vote
4answers
2k views
Problem deploying Python program (packaged with py2exe)
I have a problem: I used py2exe for my program, and it worked on my computer. I packaged it with Inno Setup (still worked on my computer), but when I sent it to a different computer, I got the ...
7
votes
3answers
925 views
When is “self” required?
I have been using classes for only a short while and when I write a method, I make all variables reference self, e.g. self.foo.
However, I'm looking through the wxPython in Action book and notice ...
5
votes
2answers
2k views
Unable to use wx.NotificationMessage properly with wxPython
I recently upgraded to the development release of wxPython (wxPython 2.9.2.4) since I needed the functionality of wx.NotificationMessage within my application. I have been trying unsuccessfully to ...
4
votes
3answers
2k views
wxPython: Making something expand
How do I make any wxPython widget (like wx.Panel or wx.Button) automatically expand to fill its parent window?
3
votes
3answers
996 views
wx.TaskBarIcon on Ubuntu 11.04
There is no tray in Unity under Ubuntu 11.04.
How can I make icon appear somewhere in Unity? wx.TaskBarIcon is not appear anywhere.
Thanks
3
votes
2answers
689 views
Associate files with specific extension to my own application in Python
I have created an app. It uses some database file to show its contents in a wxpython frame.
Let us assume the database file extension is .xyz. When I double-click on an .xyz file, I want to open that ...
1
vote
1answer
3k views
Python WX - Returning user input from wx Dialog
I'm new to Python and WX. I created a simple test dialog shown below that prompts the user with a combobox. I would like to capture the value from the combox in my main program. How do I call it from ...
6
votes
1answer
1k views
Auto-Completion In wxPython wxComboBox
I've been trying to make a ComboBox which would suggest options as you type, much like an IDE's code suggestions/code-sense, or googles suggestions when you type in a search.
The suggestions would be ...
3
votes
1answer
2k views
How to uninstall wxpython 2.8 on Mac OSX 10.6
Some details of my machine and installed packages before proceeding further:
Mac OSX version: 10.6.6
Python version: Activestate Python 2.7.1
wxpython version: wxpython 2.8 (uses Carbon API hence ...
3
votes
1answer
217 views
In wxPython, What is the Standard Process of Making an Application Slightly More Complex Than a Wizard?
I am attempting to create my first OS-level GUI using wxPython. I have the book wxPython in Action and have looked at the code demos. I have no experience with event-driven programming (aside from ...
3
votes
3answers
8k views
How do you force refresh of a wx.Panel?
I am trying to modify the controls of a Panel, have it update, then continue on with code execution. The problem seems to be that the Panel is waiting for Idle before it will refresh itself. I've ...
2
votes
4answers
820 views
How to remove initial wx.RadioBox selection?
I have the following code :
myList =['a','b']
rb=wx.RadioBox(self.panel, -1, "Options :", (0, 0), wx.DefaultSize,myList, 2, wx.RA_SPECIFY_COLS)
When it renders first time I see that a choice has ...
2
votes
2answers
1k views
Hierarchical checked tree control with tri-state checkboxes in wxPython?
As per the title, is this possible?
By tri-state, I mean the parent node is:
Checked if all children are checked
Unchecked if all children are unchecked
Grey/Filled if some children are checked
I ...
1
vote
2answers
51 views
wxpython. Need assistance with confusing error
This code works for someone else on another computer but it won't seem to work for me. I am using python 2.7.7. It worked well for two other people but it just seems to not like me or my computer ...
1
vote
1answer
89 views
How to reset NavigatonToolbar “history” when re-plotting data on the same axis?
I have a wxPython application that uses matplotlib for plotting data repeatedly.
The code looks something like this:
import matplotlib
matplotlib.use('WXAgg')
from matplotlib.figure import Figure
...
1
vote
1answer
183 views
colour a binary matrix matplotlib
highlightc = np.zeros([N, N])
print highlightc
c = len(highlightc)
colour = [0.21]*c
colour = np.array(colour)
print colour
for x, y in hl:
highlightc[x, y] = 1##set so binary matrix knows where ...