Tagged Questions
1
vote
0answers
27 views
Show serial data from arduino in plot and in display
I am a Newbie to this, so please excuse my ignorance.
I am trying to make a simple gui which continously updates a plot of serial data from my arduino Uno, and the same time it should display the most ...
0
votes
2answers
42 views
why is the python GUI interface fleeting
#coding=utf-8
import wx
class App(wx.App):
def OnInit(self):
frame=wx.Frame(parent=None,title='Bare')
frame.Show()
return Ture
app=App()
app.MainLoop()
runs OK! but the ...
0
votes
2answers
23 views
Best way to show truncated data in ObjectListView cell
One of the columns in my ObjectListView contains data that is too long to display completely, so it's automatically truncated. I would like a way to display all the data in the cell. I've already ...
1
vote
1answer
80 views
How to hold for loop iterations?
I want "Class A" to hold and not finish looping over all counts and wait for "Class B" to finish using the set of results coming out of "Class A". "Class B" is a wxPython dialog box which uses ...
1
vote
1answer
23 views
How can I update a matplotlib figure in a way that prevents xdata from being None?
I’m writing an application that periodically (approximately once per second) collects some data from a hardware device and displays it in a graph using matplotlib. The user will periodically click on ...
1
vote
0answers
9 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 ...
0
votes
2answers
20 views
wxPython - Widgets With Same Name?
Why does the following code create 2 widgets, and not overwrite each other? How would someone reference the first instance vs second instance?
import wx
app = wx.App(False)
frame = wx.Frame(None, ...
0
votes
1answer
18 views
wxPython. How do I center a static size panel?
I know this is a very simple question but I've spent hours trying to figure out a solution. I want my panel to be a 50x50 blue box that doesn't change size, and stays centered in the window. I've ...
1
vote
1answer
26 views
wxpython Disable Frame Resizing while keeping the RESIZE_BORDER style border
The style I like is: wx.STAY_ON_TOP | wx.RESIZE_BORDER
wxPython Disable Frame Resizing
Following this suggestion the border vanishes. But I want to keep the style of RESIZE_BORDER just not its ...
1
vote
1answer
16 views
wx.Image from image URL
Well I've been doing a ton of searching and there doesn't seem to be too many people talking about this. With the help of the documentation for wxPython, I've got this far. I'm looking to create a ...
0
votes
1answer
35 views
How to retrieve multiple numbers from TextCtrl?
I have following set of TextCtrl which I edit when needed.
import wx
class MyCheckBox(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1, 'Values', size=(490, 450))
...
1
vote
1answer
40 views
Layout Management with wxPython
This new question is build on this
I am having problem with managing the layout in wxPython.
In this program I have two buttons in two layouts. But no matter what I do I cant change the position or ...
0
votes
0answers
19 views
How to set objects on a frame properly wit wxpython toolkit?
Please advice the most appropriate parenting way to achieve the following layout with wxpython toolkit. The image below shows how I did it, for some reason GRID1 and GRID2 are not responsive to mouse ...
0
votes
1answer
36 views
Replace an Existing layout with new layout with wxPython
I am new to wxPython. I am making a layout with Gridbagsizer.
I almost succeeded in making my desired layout. But for some unknown problem it is giving some problem.
My objective:
I made 5 layouts. ...
0
votes
1answer
37 views
Return value from wxpython main frame
i am facing some issues to get return value from wxpython main fram.
my script:
import wx
import wx.xrc
class Email_template( wx.Frame ):
def __init__( self, parent, to, cc, subject, ...
0
votes
1answer
22 views
WxFormBuilder has no Python option
How can I generate python code? I know I need to change code_generation property from C++ to Python, but there is no Python option... How can i fix this? I have already tried looking for this problem ...
0
votes
1answer
17 views
Processing Return key in wxGrid class
Recently I'm using python 2.7 and wx2.8 as a base of my application. Since that time I have problems in processing of Return key in my app. I have this error only on windows - in linux it works fine.
...
2
votes
1answer
52 views
How does wxpython exit Mainloop?
I have a wxpython application, it runs this way:
if __name__ == "__main__":
app = wx.App(False)
frame = MainWindow("Application")
frame.Show()
app.MainLoop()
there is an "exit" menu ...
0
votes
1answer
36 views
How to use wxPython to create a dialogue box?
I am learning to use wxPython to build a dialogue based program.
I tried following code (simply copied from wxPython Demo):
import wx
...
0
votes
0answers
23 views
How do I change the displayed wx.DirPickerCtrl path?
I would like to change the value of a wxPython DirPickerCtrl at runtime. In the example below I am trying to change the value using SetPath() (second last line in code) but the value does not change ...
0
votes
2answers
30 views
Reopen wxpython exe when closed
I have an exe that I created using wxPython (with PyInstaller). Within the code, I have the ability to download an update to the exe (thus downloading a copy of the exe). Folks have this exe ...
1
vote
1answer
23 views
wxPython TextCtrl assertion error: wx.wxEVT_COMMAND_TEXT_ENTER not a PyEventBinder instance
Trying to make a wxPython TextCtrl to react on ENTER, I get an assertion error:
self.fileNameInput = wx.TextCtrl (self, style=wx.TE_PROCESS_ENTER)
self.fileNameInput.Bind ...
0
votes
1answer
23 views
wxPython, efficient way to create a settings dialog
Since this requires a more singleton approach, I was wondering which one amongst these two would be the "right" way to do it:
1.
if hasattr(self, "settings"):
# Already implemented, shows it
...
0
votes
1answer
19 views
Why is HideRowLabels() method missing in wxpython grid class?
In http://wxpython.org/Phoenix/docs/html/grid.Grid.html?highlight=hiderowlabels reference page, I see that HideRowLabels() method of wx.grid class listed. But when I use it in my application, I get ...
1
vote
2answers
18 views
wxPython: disable multiple buttons
I have a wxPython GUI which looks like this:
As you can see there are three "columns", each enclosed in a wx.StaticBox. I want to disable all the buttons, text box, and radio buttons within a ...
0
votes
2answers
46 views
Still no wxPython for Python 3 (or 3.3) yet? [closed]
I wanted to start working with wxPython, but I found out that it isn't updated for Python 3. I'm using the newest verion of Python, 3.3 that is.
So I started looking on the web and found some people ...
0
votes
1answer
23 views
WxPython - Mouse Click Not getting recognised on the GUI
I am new to python. I am trying to gather links from youtube based on search string. Assumption is the link I want will be the first result on my search results.
Problem I am facing is mouse clicks ...
3
votes
1answer
61 views
How to create a wxpython notebook with 2 panels splitted horizontally?
I'm trying to build something like below:
It's a notebook with 2 panels, split horizontally. The panel on top is also split into 2, each split containing a wx.grid object.
I have tried the code ...
1
vote
1answer
77 views
Drawing on a bitmap with wxpython (cross-platform)
I'm aware that there are literally hundred of examples out there for this task, though I don't manage to apply those examples to my specific problem. As you can see on the code below I am trying to ...
0
votes
1answer
14 views
wxWidgets ScrolledPanel tab order doesn't work
I had a page that was working fine with respect to tab order, but since I added a scrolled panel to the page, you can only tab between the first control in the ScrolledPanel and the navigation buttons ...
1
vote
1answer
26 views
wxpython with matplotlib doesn't initialize
I tried to use matplotlib in wxpython, but there is some problem.
import wx
from matplotlib.figure import Figure
import numpy as np
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as ...
0
votes
1answer
19 views
Colour or Font in wxpython.ListBox
I'm trying to change the colour or the font of a wx.listbox with
testfont = wx.Font(100, wx.MODERN, wx.NORMAL, wx.NORMAL, False, u'')
self.SetItemFont(1, testfont)
but this doesn't work!! I ...
0
votes
1answer
6 views
How can I set the default file name in saveFileDialog.SetFilename in wxPython for windows?
For some reason, the following code snippet works on OS X Mavericks, but not on Windows 7:
fileLabelDefault = self.filename + ".xlsx"
saveFileDialog = wx.FileDialog(self, "Speichern", "", ...
0
votes
1answer
15 views
wxPython error “takes no arguements (2 given)”, when no arguments given
I've been trying to create a little python GUI for a database I'm writing. My main GUI works, but a dialog I've created for data entry throws the above error whenever the buttons are clicked (the rest ...
0
votes
1answer
25 views
How to display sum of 2 cell values in another cell and autorefresh it as cell values change in wxpython grid?
I have a wx.grid with size 1*3 (1 row, 3 columns). Cell 1*1 has value 3, cell 1*2 has value 5 and I want cell 1*3 to display sum of the other cells (3 + 5 = 8). And I want cell 1*3 to autoupdate its ...
0
votes
2answers
30 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
41 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
23 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
29 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
22 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
34 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
22 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
20 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
43 views
wxPython: CustomTreeCtrl uncheck radio button when selected with mouse click
Please consider the following condition.
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 ...
0
votes
1answer
21 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
60 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
51 views
wxPython: Mouse left click (EVT_LEFT_DOWN) on SearchCtrl
Please consider the following condition.
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 ...
1
vote
1answer
23 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
30 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?
...
1
vote
1answer
26 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 ...