0
votes
1answer
18 views

Cannot switch to a new panel

I'm trying to switch a new panel after I clicked button. I created a panel with two tabs (notebook) and each tab has buttons. These buttons will switch into a new panel when it is clicked. However, I ...
0
votes
1answer
19 views

wxPython - How to get what data checked after sorting (listmix.ColumnSorterMixin)

I have a data in dictionary which will go to ListCtrl. I have checkboxes listmix.CheckListCtrlMixin for selecting data and listmix.ColumnSorterMixin for sorting. The problem is that after I sorted ...
0
votes
0answers
12 views

Changing height of status bar in wxpython on mac?

I'm writing an app in python using the wxPython gui library for the mac, and finding that you can't change the height of a window status bar, even though there is a function setMinHeight() function in ...
0
votes
1answer
12 views

wxpython: Setting minimum frame width / buttons disappearing on resizing

I have a MainWindow frame containing to vertically aligned panels; the top one contains text and buttons (horizontally aligned within the panel), while the bottom one contains content that is easily ...
0
votes
0answers
20 views

How to add a tick sign on a folder in windows

i am developing a small application in windows using python and i am new to this. I want to show a tick sign on a folder. How can I achieve that? Please help me. Thanks in advance.
0
votes
1answer
21 views

How to make wx.TextCtrl content NOT selected by default?

Here's my problem: self.textCtrl1 = wx.TextCtrl(id=wx.ID_ANY, name='textCtrl1', parent=self, pos=wx.Point(0, 100), size=wx.Size(400, 100), style=wx.VSCROLL | ...
0
votes
1answer
17 views

pexpect run long bash command hang wxpython GUI

I am programming a GUI software has a terminal window (wxCtrl) to display external program's output in real time while it is executing. I tried subprocess.Popen, this doesn't work as expected because ...
0
votes
1answer
22 views

Fastest way to populate wx.Choice?

Need to populate a wx.Choice with hundreds of choices, and it looks like there's only one method for this, which is Append(): choiceBox = wx.Choice(choices=[], id = wx.ID_ANY, parent=self, ...
0
votes
1answer
19 views

wxPython: make variables available to an imported class?

I have written a wxPython GUI which assigns some variables upon a button click. def OnGo(self, event): inputdatadirectory = self.txtbx1.GetValue() outputsavedirectory = ...
0
votes
1answer
35 views

wxpython interface becomes unresponsive when running live matplotlib draw() function

So I am using wxpython to make a GUI for a program. I have also embedded matplotlib graphs in this program. My problem is when I try to use draw() to update the plot continuously, my program becomes ...
0
votes
1answer
13 views

Buttons under wx.Notebook element

I'm trying to add Save/Cancel buttons under wx.Notebook element, however after adding this buttons on wx.Frame all my UI was broken. For example, piece of my wx.Notebook element is see at the upper ...
0
votes
1answer
17 views

wxPython grid function suddenly stops being *callable* after the first pass to wx.CallAfter

I use: import wx.grid as gridlib and then I do this inside the class that inherits wx.Panel: self.grid = gridlib.Grid(self) self.grid.CreateGrid(10000, 17) And it creates a large grid. Now when I ...
1
vote
0answers
19 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 ...
0
votes
1answer
25 views

wxpython: How can I fill a Notebook tab with a grid created elsewhere?

Right now I have a GUI built from wxpython that successfully pulls data from a .csv, populates a wx grid object, and then displays it in a new frame. I have also successfully got my main window to ...
0
votes
3answers
26 views

In wxPython what should the MainThread do while a separate thread is doing some work?

I have an OnClick function that is bound to a wx.Button object and when I click it, the function is run, it creates a thread and starts doing work behind the scenes. What should I do after this on the ...
0
votes
1answer
24 views

Looking for (wxPython) Python 2D drawing framework

I'm looking for a framework for drawing 2D scenes in Python. Not for game programming, but for 'office' like applications (e.g. drawing diagrams, mindmaps etc). Preferable something that can be used ...
0
votes
1answer
19 views

wxPython moving widgets

I'm a very beginner of wxPython. Now I'm trying to make a static text moveable by using timer(), but the question is that when the later one appears, the former one just doesn't hide. So I'm thinking ...
0
votes
2answers
36 views

wxPython wx.CallAfter - how do I get it to execute immediately?

When I execute a function with wx.CallAfter, inside it a variable is set. I want to be able to get the value of that variable on the next line, however CallAfter seems to execute the function a LOT ...
0
votes
0answers
17 views

wxPythong - getting return value from wx.CallAfter?

When I call wx functions from a non-main thread I use wx.CallAfter, but what happens when I want to get the return value of the function called? What must I do then? Is it stored somewhere?
0
votes
1answer
13 views

Fill frame wxpython

I am creating a GUI in wxpython, and am encountering a problem which I cannot wrap my head around. All panels and labels are using wx.ENABLED and 1 as proportion, but still it won't maximize my panels ...
0
votes
1answer
21 views

wxPython app becomes unresponsive on all threads?

In my class that inherits wx.Panel, I have this method: def KeyEventProcedure(self): while True: z = msvcrt.getch() if ord(z) == 27: self.OutputText("Stopping.") ...
0
votes
3answers
17 views

How to make text fit in cells in a wxPython grid?

Basically if I drag a cell I can size it to whatever size I want. Is there functionality in wxPython where cells expand automatically to fit the size of the text inside of them?
0
votes
0answers
23 views

wxPython - lacking grid class?

When trying to do what is described here. I can't find the grid class. This is my import: import wx import wx.grid as gridlib And wx.grid is underlined as red (I'm using Eclipse) and it says: ...
0
votes
0answers
24 views

wxpython wizard not found import error

Hello whenever I try any of the code examples like here for WxPython I always get: import wx.wizard ImportError: No module named wizard Any idea, a I missing a package, I tried updating WX many ...
1
vote
1answer
28 views

wxPython: Sizer: Hide/Show object in a column, while shifting other entries

I am trying to create a frame with 3 StaticText entries (in a vertical BoxSizer). When you click on an entry, I want a second StaticText object to appear directly below it (and all other entries below ...
1
vote
0answers
24 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 ...
0
votes
1answer
44 views

Radio button display and selection issue in wxPython

I am creating multi-column lists which are all equal in length and also generating number of radio buttons equal to the length of list. I have couple of issues: 1] Display issue: In following fig., ...
1
vote
1answer
18 views

Validate string in TextCtrl

Im written this code: # -*- coding: utf-8 -*- import wx import wx.animate import wx.lib.agw.hyperlink as hl ID_BUTTON_ACCEPT = 700 ID_BUTTON_CANCEL = 701 ID_TEXT_INPUT_LOG = 702 ID_TEXT_LABLE_LOG = ...
0
votes
2answers
21 views

Can't play animation in wxPython

Im trying to play GIF image, which i taken from preloaders site, in my frame: class TestFrame(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, -1, title, ...
-4
votes
0answers
31 views

How do I insert two images and one text in the status bar in wxpython?

How do I insert two images in the status bar in wxpython in this format: image1.jpg------image2.jpg---------project_name(some string) My code is something like this: self.StatusBar = ...
0
votes
2answers
22 views

A wx python application that uses Google maps

I intend to makea wx python application that can request and show the google map (or map from another similar map service) for a specific set of coordinates. The application should: Show a ...
0
votes
0answers
18 views

draw polygon with different line width wxpython

i am writing code in wxpython 3.0.0 and python 2.7. I am adding irregular polygon using points in poly = FloatCanvas.Polygon(...) self.Canvas.AddObject(poly) self.Canvas.Draw() consider this ...
1
vote
1answer
21 views

wx widget won't work (python)

I've written a script that should ask for two values and then display them in another window. It looks like this: import wx class Example(wx.Frame): def __init__(self, parent, title): ...
2
votes
1answer
24 views

wxPython Progress bar crashes and not works as expected

I am trying to implement a simple progress bar using wx.Gauge . Before moving to my original code i want to write small script as follows: import time for i in range(101): print i ...
1
vote
1answer
13 views

Disable cursor in TextCtrl - wxPython

I have code as follows log = wx.TextCtrl(panel, wx.ID_ANY, size=(300,100), style = wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL|wx.TE_DONTWRAP) I'm writing logs into this box ...
0
votes
1answer
22 views

wxpython button event running before click

When I run the code in my IDE, the button bind event runs automatically instead of waiting for me to click the button. Then when the event is complete and the panel appears, the button does nothing ...
0
votes
3answers
19 views

wxPython: show number repeatedly

I'm a very beginner of Python Programming, and now I'm wondering why my widgets cannot show number repeatedly. That is, I'd like to let the text show numbers from 1 to 9, but in the while loop, it ...
0
votes
3answers
38 views

Getting integer values from TextCtrl-box in wxPython

I am writing a wx application where values entered into TextCtrl-boxes are to be used as arguments to functions. This does not work, and I am starting to suspect it's because they are not properly ...
0
votes
1answer
27 views

Calling event with argument in wxPython

I'm writing an application in wx Python that is supposed to get some values, entered into TextCtrl-boxes, and passing them on to a function as you press a start button. This has proven complicated. ...
0
votes
1answer
14 views

wxpython - how can I keep a line of text staying at the bottom right corner of a scrolledwindow?

Thanks for any suggestion Below is my code def _OnPaint(self, evt): dc = wx.BufferedPaintDC(self) self.DoPrepareDC(dc) dc.Clear() nLeft, nTop = self.GetViewStart() print nLeft, ...
0
votes
0answers
23 views

Cannot set the size of the wxPython CustomTreeCtrl

I have created a small test form for trying out the custom tree control. But I cannot set the size of the tree. I want a fixed width on the left and a variable width on the right so I used a box sizer ...
0
votes
1answer
23 views

wxPython UltimateListCtrl check (tick) listitem programatically

I am using UltimateListCtrl with LC_LIST style. I have all items in list with checkboxes. After populating list, I am trying to check (tick) some items dynamically as per the data I receive from ...
-1
votes
1answer
48 views

Python: Unbound Methods

To preface here is the error I receive: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "TestR.py", line 13, in __init__ ...
-1
votes
0answers
13 views

mac wxPython3.0 TextCtrl event NoteBook event

OS X 10.9.3 wxPython3.0-osx-3.0.0.0-cocoa-py2.7.dmg python 2.7.7 1. notebook wx.EVT_NOTEBOOK_PAGE_CHANGED event mac notebook wx.EVT_NOTEBOOK_PAGE_CHANGED can't work ...
0
votes
1answer
29 views

wx.TextCtrl GetLineLength wx.CallAfter not working

I am outputting the stderr to a wx.TextCtrl, after 10 lines I want to delete the first line so there is only ever a maximum of 10 lines in my wx.TextCtrl window. I have a python script which is using ...
0
votes
2answers
29 views

Cant display a BLOB picture to BitmapButton python

My Class class Mydb(): def __init__ (self): self.conn = sqlite3.connect('C:\\lab\\pictures.db') def queryf(self,q): c = self.conn.cursor() c.execute(q) data = ...
1
vote
0answers
23 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 ...
0
votes
1answer
26 views

Stopping the execution of threads in Python. The thread is blocked before join method

I'm writing the program which execute child programs in a new process and read stdout of these programs in the separate thread and write it in StyledTextCtrl control. I faced with problem of stopping ...
3
votes
1answer
50 views

Wx Python : Status Bar Does Not Show Menu Messages

I am just starting out with wx python and I can't get the status bar to display help text from menu items.I read that statusbar messages can be set with SetStatusText() but I want help texts like this ...
1
vote
1answer
13 views

wxpython: EVT_TREE_SEL_CHANGED event in treectrl in notebook when created

I am learning wxpython and have a question. When I create a treectrl within framework and call framework.show(), the first item in the treectrl is automatically selected (i.e., EVT_TREE_SEL_CHANGED ...