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

learn more… | top users | synonyms

6
votes
0answers
979 views

Using ffmpeg with Python 2.7

I have been trying to install pyffmpeg in Python 2.7 unsuccessfully. I found a package for Python 2.6, but I can't get it to work. So, I have been mulling around with 2.7. I've seen previous post from ...
3
votes
0answers
65 views

Is JetCreator still maintained (and/or is JETPlayer deprecated?)

My Android app requires several music tracks to be played back simultaneously and in sync (e.g. a drum track and a vocals track which play together, but which can be individually muted). Efforts with ...
3
votes
0answers
214 views

wxpython animated gif as splash screen

I am struggling to get an animated gif file to play as a splash screen for my wxPython app. I have successfully used a PNG file for the splash screen using a timeout option which works well but I ...
3
votes
0answers
1k views

Forcing 32 bit Python on MAC 10.7 or 10.8

I have MAC OS X 10.8 and i have updated my python to version 2.7.3 using Python's official binary from their website. I am trying to run a python script which needs to be executed using 32 bit ...
3
votes
0answers
356 views

Enabling Multisampling in wxPython OpenGL Context

I'm trying to enable multisampling in an OpenGL program I'm writing. The application will require a substantial amount of GUI, so I am using wxPython (with which I am less familiar) instead of PyGame ...
3
votes
0answers
103 views

GLXBad Drawable error

When I run a Python script I get this error after installing all dependencies: The program 'python2' received an X Window System error. What are the possibilities? Link to the python script.
2
votes
0answers
233 views

AttributeError: 'numpy.float64' object has no attribute '_mask'

I’m using matplotlib with the WX backend. I occasionally get an exception like this Traceback (most recent call last): File ...
2
votes
0answers
44 views

Threading blocking GUI

I have a 2-way panel parsing a ListCtrl. I still have my GUI blocked from this thread: class MyThread(threading.Thread): def __init__(self, DirQ, new_dbfQ, RemoveQ): ...
2
votes
0answers
186 views

wx.TaskBarIcon in Ubuntu 13.04 (GNOME or Unity)

I've used wx.TaskBarIcon to successfully implement a systray interface to my application on Windows and Mac but am having severe trouble with it on Ubuntu. There's already been two SO questions ...
2
votes
0answers
141 views

WxHaskell and DragAndDrop: how to create custom event to trigger dropTargetOnData, dropTargetOnDrop, dropTargetOnEnter, dropTargetOnDragOver

WxHaskell and DragAndDrop I would like to know how to use the following events handlers : dropTargetOnData, dropTargetOnDrop, dropTargetOnEnter, dropTargetOnDragOver….[1] Could you check if my ...
2
votes
0answers
313 views

Dragging and Copying Images in wxPython

I am attempting to modify the DragImage demo from the wxPython examples so that instead of just moving the image around, dragging an image produces a new copy which is draggable, while the original ...
2
votes
0answers
205 views

Why does the IPython interpreter freeze on OS X when started with --pylab=wx?

I have a python package that uses both wxPython and matplotlib. To get non-blocking windows, I tried starting IPython like this: # ipython --pylab=wx When I do this, the IPython prompt appears and ...
2
votes
0answers
194 views

lasso or rectangle matplotlib

I have created a scatter graph in matplotlib, however i would like to make it interactive. I would like it so i can select multiple plotted points on the graph. I have seen the lasso function on the ...
2
votes
0answers
331 views

Transparency issue with matplotlib and wxpython

I'm developping a GUI based on matplotlib and wxpython, for Windows. I have an issue that becomes visible when the "Windows XP" theme (green Start button, blue taskbar) is used. I'm quite sure the ...
2
votes
0answers
152 views

wxPython and wxJoystick

I have a joystick that I would like to interface to in wxPython. I can connect to it just fine and get readings from 6 different axes. The problem is that my joystick (a Logitech F310 Gamepad) had 8 ...
2
votes
0answers
202 views

py2app gui error

I have a very simple gui app: http://pastebin.com/aVVTBJPd This is written in Python and wxPython. It runs fine on my Mac. I tried running py2app. Here are my exact steps: $ py2applet --make-setup ...
2
votes
0answers
405 views

Detect wx.gizmos.TreeListCtrl column label click

how to detect which column was clicked in a TreeList created with gizmos. The following code detects label area click, but I'm not able to get the clicked column. import wx.gizmos class ...
1
vote
0answers
21 views

How to get MessageDialog on exiting frame?

I need to know how to get the MessageDialog onto my existing frame, not a pop up frame. I tried just making a buttons for 'ok' and 'cancel' but I couldn't figure out how to get value of the textboxes ...
1
vote
0answers
31 views

Application crashed while giving input to wxPython GUI

I am using wxPython API to build an application and it works fine in windows 7. And now I installed wxpython CoCoa3.0 for mac and tried to run the same application. The application crashes when the ...
1
vote
0answers
25 views

Grid selection of all rows

I have a problem with selecting all rows of a grid in wxPython. The Code which does not working at the moment: def OnRangeClick(self, event): if event.Selecting(): if ...
1
vote
0answers
32 views

Unlocking Focus on Wrong View

I'm having a problem with trying to open up my GUI below, and receiving the error shown below. I have narrowed the problem to be within that portion of the code below, where I am turning a ~1.7 mill ...
1
vote
0answers
30 views

pyinstaller on Windows with --noconsole simply won't work

I have a fairly simple GUI (wxPython) app and is working great. I'm using Windows 7. When compiling it using pyinstaller with -w (or --noconsole or --windowed) and run it, I can see a console window ...
1
vote
0answers
19 views

wxpython drag-and-drop dataobjectcomposite

I've spent more time than i'd like to admit on this and i'd really like some help on understand the wxPython drag and drop inside and out. Note: Yes I have read the documentations and unfortunately i ...
1
vote
0answers
37 views

Is there a faster way to rotate a large rgba image than scipy.interpolate.rotate()?

I am building an application to do some image analysis tasks. I need to be able to do some image manipulations (i.e. rotate, zoom, change center point, etc.) in order to get a specific section of the ...
1
vote
0answers
23 views

UI design in wxPython freeze after pop-up closing

I'm designing a SW using wxPython. I have created a full interface with Menu as baseline. Now I'm starting to associate action to each menu. I have defines the interface as below class ...
1
vote
0answers
20 views

wxPython window IsShownOnScreen but not actually visible

I have a wxPython gui that sometimes has weird behavior. I have a button that creates a dialog, then calls dia.Show() and dia.Center(). At this point dia.IsShownOnScreen, dia.IsActive, and dia.Shown ...
1
vote
0answers
27 views

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, ...
1
vote
0answers
37 views

CoreText Warnings When Using wxPython

When using wx with Matplotlib in a Python program on OS X Mavericks, I'm getting the following warnings: 2014-05-20 23:42:06.107 Python[1750:d07] CoreText performance note: Client called ...
1
vote
0answers
24 views

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 ...
1
vote
0answers
53 views

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 ...
1
vote
0answers
11 views

wxPython class refactoring

I would like to refactor the class in wxPython so it can be used as a tab in wx.Notebook, now is opening in new window. I never done something like that, and I am new to WXPython. Thank you for any ...
1
vote
0answers
36 views

How can I translate error messages from Python core if used within wxPython?

I have a wxPython based application, where all my own strings are translated via gettext. Now I would like to use native Python error messages, for example in file handling operations. Q1: How can I ...
1
vote
0answers
16 views

side effect of importing pdb — reference to C++ object from traitsui wxpython is retained

I was debugging some code with pdb, and found that the program worked as intended whenever the pdb module was imported (whether or not any breakpoints were active), but crashes otherwise. ...
1
vote
0answers
30 views

why I get 'msgid' format string unnamed arguments warning, (only) when running mki18n.py for gettext on wxPython

Trying to run the mki18n.py script on my Python code, I get a warning on this line: >>> dlg = wx.MessageDialog(None, str (_("Attached device is \"%s\",\nschedule file header is for \"%s\"") ...
1
vote
0answers
18 views

wxPhthon Ultimatelistctrl Hyperlink sample code

I need use Ultimatelistctrl to icon with hyperline. In Ultimatelistctrl API, it mentioned "Hyperlink-type items and subitems: they look like an hyperlink, with the proper mouse cursor on hovering;" ...
1
vote
0answers
27 views

Which matplotlib.axes methods are safe to call from a background thread?

I’m writing an interactive application using wxPython and matplotlib. I have a single graph embedded in the window as a FigureCanvasWxAgg instance. I’m using this graph to display some large data ...
1
vote
0answers
66 views

Find and Replace event in python

I am working on a python project, in which I created an editor in python. This editor having all basic features like notepad++ like Open file, edit, Find and Replace etc. But I am having problem in ...
1
vote
0answers
10 views

Is there any Shortcut associated with key '2'(keycode=50) in Flatmenu?

I am trying to develop application displaying a FlatMenu,toolbar and the following panel.In toolbar i have put a textctrl. When i am trying to enter key '2' its not getting typed.I tried to debug code ...
1
vote
0answers
20 views

grid.getCellValue string in numpy array fails

I have a numpy array with several strings e.g. '4:30:30' or '3:29:11' I write these values in a wxpython grid. The other way arround doesn not work, why? arr[0] = self.grid.GetCellValue(0,0) ...
1
vote
0answers
84 views

wxpython FileDialog open crashes program in windows xp

I'm trying to put simple FileDialog into my application. Here's simple example: frame has 1 button and 1 statictext. After button clicking open file dialog appears. When user choose file - it's path ...
1
vote
0answers
43 views

Python “is” comparison fails on wxPython menuitem

I'm using wxPython to display some menus. I have a function that takes a menuitem argument. I then get the menuitem's parent menu, and iterate through the parent's list of menuitems to find my ...
1
vote
0answers
35 views

WxPython: How to get the range of displayed cells in a wx grid?

I'm trying to get the range of visible rows/columns on a grid. The grid can be scrolled, I want the first displayed row and the last displayed row on the screen. If the function could do the same with ...
1
vote
0answers
41 views

Python, matplotlib, wxpython - Anyway to move an canvas from one frame to another?

So I don't really have any code to show as it's a very large script I have currently. Having said that I will try and add a simple example shortly. Basically lets say I have two frames in wxpython, ...
1
vote
0answers
58 views

How to make a MS Ofiice type dropdown button in tabbar on top left corner in wxribbon in wxpython

I am building a GUI with wxribbon in wxpython and I have everything working great. Now, I want to have a 'Orb' like button on top left corner, near the first tab which will be like a File button with ...
1
vote
0answers
56 views

How to insert list of lists (table) into wx.grid?

I have a list of lists, in the same form you'd insert into CSV. I want to insert all of this data into a wx.grid.Grid(). I think the process is like this. data = [[1,2,3],[4,5,6],[7,8,9]] myTable = ...
1
vote
0answers
84 views

How to integrate a cv.NamedWindow in a wxpython panel or frame?

I'm trying to display a continuous feed of cv images in wxpython using cv.NamedWindow and cv.ShowImage methods. However, this opens the NamedWindow as a separate window. Is there a way to integrate ...
1
vote
0answers
46 views

Fastest way of removing matplotlib artists from canvas embedded with wxpython

I have a python program where I have several matplotlib canvases embedded into a wxpython application. One of the canvases has many crosses in it. When the user right-click in this canvas the closest ...
1
vote
0answers
17 views

How to resize a wx.SimpleHtmlListBox to its “optimum” dimensions?

I'm using a wx.SimpleHtmlListBox() to display some HTML items in a popup window on my wxPython app. Now I must resize the list box so that all elements are visible and no scroll bars are shown. So my ...
1
vote
0answers
58 views

How do I edit the color of a word without generating EVT_TEXT in wxPython?

This is one part of a two part question (other part is here) So I'm working with wxPython and PyEnchant trying to get some fancy features going. Specifically, I want my text controls to change the ...
1
vote
0answers
79 views

wxPython : Ubuntu Title Bar Icon not getting displayed

I am trying to display an icon on the title bar of our application build using wxPython on Ubuntu 12.04 LTS box: ...