Tagged Questions
0
votes
2answers
19 views
Weird Behavior From wx.FileDialog
Ok folks, here's a weird one.
Theres' a GUI (in wxPython) which allows files to be attached. The file paths are saved to class attribute self.pathList. These paths are displayed on the GUI and ...
0
votes
1answer
15 views
How to embed png images into a single exe file using py2exe?
I have viewed quite a few SO threads on this topic, but none of them have proven very helpful. I am trying to make a single executable file that will run on the system of someone who does not have ...
0
votes
1answer
20 views
How do I pass highlighted text from text control in wxPython
I'm working on building some extra functions based off the PyEnchant spell checker for my wxPython GUI. Currently, I have my text controls turn misspelled words red (detailed here and here), but I'd ...
1
vote
1answer
17 views
wxpython and share variables between classes
I have seen questions where you can share variables between classes -- which I can normally do fairly easily. However, I am trying to share a variables between a wx.Frame and a custom list control. ...
0
votes
1answer
11 views
wxPython standard menu icons and shortcuts not displaying
I am trying to teach myself wxPython, but I am driving myself batty trying to figure out why the standard menu icons aren't working. I am using Python 2.7.3 and wxPython 2.8.12.1 on Windows 7. When I ...
1
vote
0answers
24 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
1answer
16 views
How do I handle multiple EVT_TEXT events in wxPython?
This is one part of a two part question (other part is here)
So here's what I'm looking for: A function which is bound to the EVT_TEXT event of a text control that waits a few seconds, then calls ...
0
votes
1answer
16 views
gridlib cell format in python
I am using a gridlib within wxpanel. I am creating the following grid:
myGrid = gridlib.Grid(panel)
myGrid.CreateGrid(120, 9)
I want to be able to change the format of the 5th column and ...
0
votes
0answers
25 views
wxPython: CustomTreeCtrl uncheck radio button when selected with mouse click
I have created a tree with wx.CustomTreeCtrl which has both check boxes and radio buttons for its tree nodes.
I realize check boxes can be selected/deselected with mouse click. However, radio button ...
0
votes
1answer
18 views
wxPython showing help upon mouse focus
I wonder if there is any easy way to popup help (stickies style) upon focusing the mouse on a wx.Button for a second or two.
thanks
0
votes
1answer
35 views
wxPython: maximize Frame while disable resizing (Linux)
On Linux, how do you disable re-sizing, but at the same time maximize the interface to begin with?
I have tried the following but it is not maximized:
style = wx.DEFAULT_FRAME_STYLE & ...
0
votes
0answers
27 views
wxPython: Mouse left click (EVT_LEFT_DOWN) on SearchCtrl
I am creating a GUI with wxPython. I have created a wx.SearchCtrl, and I am trying to allow it to recognize single mouse left click so it will pop up a window.
However, I have tried binding events ...
1
vote
1answer
17 views
Disable buttons created dynamically based on their name in wxPython
In a wxPython project, I have a bunch of buttons that are created dynamically. Here's a minimal simplified example:
data = [{'name':'a', 'n':0}, {'name':'b', 'n':0}, {'name':'c', 'n':0}, ...
0
votes
2answers
28 views
wxPython: ListCtrl finding the item with given string
I have created a wx.ListCtrl and I have filled out the content. How do I retrieve the item with a given string?
I have used FindItem, but it always returns -1 (Not found). Am I using it incorrectly?
...
0
votes
1answer
17 views
wxPython: binding wx.EVT_CHAR_HOOK disables TextCtrl backspace
I have a wx.TextCtrl and I want to be able to type in it, but also detect key presses such as UP, DOWN, RETURN, ESC.
So I binded wx.EVT_KEY_DOWN to recognize any key press, and wx.EVT_CHAR_HOOK to do ...
0
votes
1answer
13 views
wxPython: CustomTreeCtrl disable checking for event EVT_KEY_DOWN
I am currently using CustomTreeCtrl instead of the regular TreeCtrl because it allows me to have checkbox / radio button with the tree nodes.
However, I realize the control itself catches event ...
0
votes
2answers
18 views
wxPython: TextCtrl in pop up window
I have created a pop up window, but the TextCtrl is not fully expanded to fill up the window. It works great if I use StaticText instead, (but if content too large then I would need the scroll bar, ...
1
vote
2answers
40 views
wxPython: Right-click with mouse does not set focus
My GUI currently has right-click options (Cut, Copy, Paste)
However, I realize when I right-click over my search bar (wx.SearchCtrl) to try and paste, focus is not set onto the search bar, therefore ...
0
votes
2answers
21 views
Generate List of All sizerItems Nested in wxPython Sizers
I'm looking for a way to get a list of all sizerItems which correspond to widgets. To demonstrate, I created the following example:
import wx
from wx.lib.scrolledpanel import ScrolledPanel
class ...
0
votes
0answers
30 views
How to get HRGN handle from wx.Region?
I want use win32api : GetRegionData() via ctypes in python. But I need get the HRGN handle from a wx.Region Object first. Does anyone know how to do ? thank you!!
Below have some code from ...
0
votes
1answer
27 views
wxPython: Check if tree node has focus (TreeCtrl)
Do not be intimidated by the code. It is really straightforward. (Run it if you want)
I am trying to figure out a way to do something when a tree node has focus. I know if I want to do something if ...
0
votes
1answer
27 views
Always open wxPython GUI with scroll bar selected
I have several GUIs which open progressively that are all experiencing the same issue. When I open them, the first object which is selected is a TextCtrl object. These GUIs are rather large and have ...
0
votes
1answer
29 views
WxPython, Return value for function called by button
I can't figure out how to return a value from a function called by a bound button.
I want the equivalent of this:
call_function = function()
def function():
return 'this'
print call_function
...
0
votes
2answers
33 views
wx.Python: How can I draw some lines into wx.staticbox
Hello I want to draw some colored lines inside a staticbox,I used the onpaint method but the line didn't appear inside the static box, then I tried to create a static line,this worked but I can't ...
0
votes
1answer
36 views
wxPython accessing webpage Help Please
Below is my code to access the site.
I get access to this below mentioned page, but then I will click on European Roulette, A popup comes I click on Demogame this should take me to the game table but ...
1
vote
1answer
58 views
any python lightweight gui library? [closed]
I've tried using pyinstaller to package a simple hello world example using both pyqt and wxPython and both of them were about 15mb to 20mb. Why is it so big , its not practical for simple apps. Is ...
1
vote
1answer
19 views
wxPython draw text onto EXISTING bitmap or image
I'm trying to add a background image to some text, I'm hoping to do this by using MemoryDC to write text to an image which will then be placed in my GridSizer.
Everything works as I want it to with ...
0
votes
2answers
32 views
WxPython dynamically added sizers mis-behaving
I'm trying to set-up a display to show the gamertag and avatar of users added to a text file, it most of the way there but I can't get them to position properly.
A quick mock-up of what I want: here.
...
0
votes
0answers
42 views
AuiNotebook how to check if a tab is visible ? IsShown(), IsShownOnScreen()?
In order to not create all tab's content on Auinotebook, I just create the content OnPageChanging, and delete the old one. It works with the following code
def OnPageChanging(self, event):
new = ...
0
votes
1answer
27 views
wxpython gauge does not pulsing
I am struggling to get a gauge bar to pulse while a subprocess runs so I have gone back to basics and got this basic code which still does not work
import wx
class GaugeFrame(wx.Frame):
def ...
0
votes
1answer
21 views
wxpython balloonframe overlays all windows
I am using BalloonTip and BalloonFrame from wxpython in order to generate pop up notifications. Unfortunately the generated elements are overlapping all windows: Not only the window of my application ...
0
votes
1answer
21 views
wxPython: Class attribute shared among several instances accidentally
This bit of code has me scratching my head.
I'm trying to write wxPython GUI, with a frame that contains several 'PulseBox' objects (code below). Each pulse box is basically 4 wx.TextCtrls with 4 ...
0
votes
2answers
26 views
How to sequence threaded tasks in Python/wxPython
Relative newcomer to wxPython and threading, hence confusion.
I have 5 "steps" that must be performed on my target data. The steps must be performed sequentially in a given order.
In order to keep ...
0
votes
1answer
16 views
wxPython and MDI like app
I want to build an application in wxPython which have multiple windows like MDI. I don't want use MDIParentFrame which is old. I've seen wx.aui too but I don't like it.
What I want is a main frame ...
0
votes
1answer
32 views
Timing accuracy in Python using WXPython
I'm making a simple mp3 player that plays multiple mp3's at a time. It acts like it is mixing. Timing is critical to ensure a pleasant user experience, otherwise it just sounds like two cats trying ...
0
votes
1answer
36 views
wx.TextCtrl change on mousehover
I have a wxApplication with several wxTextCtrl, for example:
self.tc1 = wx.TextCtrl(self.panel,-1,pos=(100,150),size=(60,20))
self.tc2 = wx.TextCtrl(self.panel,-1,pos=(100,170),size=(60,20))
self.tc3 ...
0
votes
1answer
42 views
WXPython interface when moving from Windows to Linux is not working properly
I almost finished a trial version of my graphic interface. I did that on Windows and then I move to Linux to test it.
The problem I am having is that the Matplotlib panel is being cut (just on Linux ...
0
votes
0answers
34 views
grapher-Python (libaries wx/matplotlib) [closed]
here´s my function grapher program, which plots graphs:
import wx
import numpy
import matplotlib
from matplotlib.figure import Figure
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg ...
2
votes
1answer
43 views
Retrieve XY data from matplotlib figure
I'm writing a little app in wxPython which has a matplotlib figure (using the wxagg backend) panel. I'd like to add the ability for the user to export X,Y data of what is currently plotted in the ...
1
vote
1answer
50 views
Rows of string to List set
I have a mental block on List formats.
Any help would be appreciative.
I have my edited ListCtrol to print:
2, 200, 487
1, 199, 486
I need to reload these rows of string to a list set like:
...
1
vote
2answers
35 views
embedding mytplotlib figure and change its size
I had the same problem like here Embedding a matplotlib figure inside a WxPython panel -> embedding a matplotlib figure inside a wxpanel.
It works, but this figure shall not cover the whole frame; so ...
0
votes
3answers
52 views
.GetValue() is not working for TextCtrl in this particular case
hey folks using Python i have bind the radio button and when that's clicked the TextCtrl is called upon but after I type in TextCtrl i am not able to get the string that has been entered, My code goes ...
0
votes
1answer
40 views
wxgrid SetCellvalue and Wordwrap
I have a grid with 3 columns. The first column is being populated with the multiple files that I am importing and writes to the appropriate rows based upon the number of files. This works fine as long ...
0
votes
1answer
8 views
edit StatusBar from ChildClass
I created a statusBar in my wxApp, but this statusbar is not editable from another class:
import wx
class MainFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, ...
1
vote
1answer
22 views
wxpython event handling: GetValue after key is pressed
I want to get the value of a TextCtrl every time this TextCtrl gets changed. My code returns me the "old" value (like before I pressed the key) - but I want to get the "new" value with the key I ...
0
votes
1answer
21 views
Python pyinstaller and translit module
I'm using module transliterate.py from standard translit python libraries.
When I compile my GUI application, it raises the next error.
Traceback (most recent call last):
File ...
0
votes
1answer
20 views
wxpython update wx.statictext inside wx.gridsizer
I am using a Flexgridsizer that contains a mix of statictexts and buttons within it. My flexgridsizer contains 1 column of statictext that never changes, 3 columns that update constantly (sometimes a ...
1
vote
2answers
75 views
wxPython-Python:Serial port problems
I have create a code which opens a serial port where is an arduino connected and takes some data,so far so good,my problem is when I open my program and press the start button (which opens the serial ...
0
votes
1answer
30 views
How do I bind wx.CLOSE_BOX to a function?
Fairly simple question, but I can't seem to find the answer. I have a GUI which has a cancel button that asks the user to abort all unsaved changes when they press it. The GUI also has a ...
0
votes
1answer
33 views
What is the dependancy package for Pynxc?
I have downloaded pynxc package from http://code.google.com/p/pynxc/ . But I did not get dependencies package list.
When I run ./pynxc --download program_name.py , I get error i.e
No Module named ...