Tagged Questions
0
votes
0answers
3 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
17 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
18 views
wxPython: Mouse left click (EVT_LEFT_DOWN) on SearchCtrl
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 EVT_LEFT_DOWN / EVT_LEFT_UP to ...
1
vote
1answer
15 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
26 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
15 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
17 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
36 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
20 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
29 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
25 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
24 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
28 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
31 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
34 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
55 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
18 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
31 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
41 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
24 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
19 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
25 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
31 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
39 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
39 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
33 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
50 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
39 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
19 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
70 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
28 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
0answers
43 views
wx python reset frame mask
I am trying to change the image of a wx frame that has a mask on it. The mask works fine, and the frame works fine, until I change the image. The old mask outline is still applying to the new image. I ...
0
votes
1answer
45 views
Wx not importing
So I'm using python 3.3 and recently I have tried to install wxpython and wxwidgets.
Synaptic package manager shows that wxversion, wxtools and wxgtk2.8 are all installed. When I use the python idle I ...
0
votes
0answers
18 views
wxPython: BitmapButton wx.NO_BORDER
I am creating a BitmapButton by the following code on Ubuntu 12.04 LTS box:
contBtn=wx.BitmapButton(self, wx.ID_ANY, self.contbmp, pos=(150,300), style=wx.NO_BORDER)
The button comes up fine but ...
1
vote
1answer
21 views
wxPython - TextCtrl different behaviour between Linux and Windows
using python 2.7 and wxpython as GUI API I'm getting two different behaviour on TextCtrl if I'm using Winsows or Linux:
using Windows once I run the .py script the TetCtrl is immediately editable, ...
0
votes
0answers
12 views
wxpython PDFViewer.py ValueError when looking for font
I am trying to make use of PDFViewer in wxpython but I am getting these error:
raceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/wx/_core.py", line 16772, in ...
0
votes
0answers
18 views
wxpython : event handler does not gets destroyed on call of class.Destroy method
I am developing a GUI application using wxPython. The application consists of may screens so I have created each class for each screen. In each class I construct wxFrame object for designing screen ...
0
votes
1answer
16 views
wxpython toggle toolbar buttons
I have wxpython toolbar with couple of icons, for example connect, play, save etc. I want to toggle the connect icon.
When I am connected then connect bitmap should replace with disconnect and vice ...
0
votes
0answers
12 views
Wxpython visualize selected bitmap
I have couple of bitmaps aligned in panel, and I want when I click on specific bitmap.. The bitmap should be selected like a border around or putting the bitmap inn box.
I am able to get the index ...
1
vote
2answers
40 views
How to build wxFormBuilder 3.x on Mac
I downloaded wxFormBuilder 3.4 beta mac to appropriate directory.
and open a terminal i run to sh create_build_files4.sh but console show to me following error.
MinSeok-ui-iMac-3:wxFormBuilder ...
0
votes
2answers
36 views
Python Image object to WxPython
I just want to display python image object in wxpython panel.
What i am trying to accomplish is taking screenshot using python ImageGrab or autopy and showing it in wxpython panel. My screenshot ...