Questions tagged [wxpython]

1

votes
1

answer
206

Views

How to fix blurry text in WxPython controls on Windows?

We have a Python-based application written with WxPython 4 that we build for multiple operating systems, including Windows. In Windows 10, at least in my environment (inside a VM on a high resolution monitor), the text elements in the interface are blurry: I can improve the situation somewhat by set...
mhucka
1

votes
1

answer
36

Views

Labels not displaying - why? - Using wxPython-Phoenix

I'm trying to create a simple graphical interface with wxPython-Phoenix but the widgets are not displaying and I'm not sure why. I have choose to use wx.FlexGridSizer() as the sizer to handle the widgets positioning. Attached is my code: class App_Frame(wx.Frame): def __init__(self,title=''): #Conta...
Andy
1

votes
0

answer
64

Views

WxPython PropertyGrid Show the Time

I found this to show date on property grid: pg.Append( wxpg.DateProperty('Date',value=wx.DateTime.Now()) ) How can i show the time instead ? Something like HH:MM:SS with a scroller. Thanks
schanti schul
1

votes
1

answer
168

Views

WxPython Phoenix TaskBar Icon

Hello I need to make a app, with a icon in systray for Windows. I use Python3 with wxPython Phoenix. I found code example like: example 1 or example 2 or exemple 3 But is out-dated (or for Python2.x), now wxPython use wx.adv for icon in taskbar, and I have trouble with the doc for WxPython Phoenix....
Maladra
1

votes
1

answer
269

Views

matplotlib - wxpython backend - fast update

As part of a big GUI effort that is meant to plotting complex scientific figures I am trying to speed up interactions and figure updates. So far I've been using canvas.draw() method to update any changes to any drawn object in the figure. I won't be able to reproduce an example code as it's a thous...
Cobry
1

votes
2

answer
593

Views

Creating a button with a Bitmap image wxPython

I am using wxPython on Python 2.7. I would like some help with creating a button with bitmap images. I am using this video https://www.youtube.com/watch?v=Y7f0a7xbWHI, and I followed the codes and typed def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,'Frame aka window',size=(300,200))...
Sen
1

votes
0

answer
15

Views

Program stopping after certain point

My program stops after a certain point - after registration it just stops and I am confused what could be stopping it as before it worked perfectly fine. import os import time def main(): print('Search: Registration | Login') print('Note: Must Registrate first to continue') time.sleep(2) print('Welc...
Steelingsword94
1

votes
0

answer
23

Views

wx.AcceleratorEntry with non alphanumerical characters

Is it possible to use 'wx.AcceleratorEntry' whit non alphanumeric characters? If yes what I'm missing? I've checked the documentation for wx.MenuItem.SetItemLabel which says 'The accelerator may be any alphanumeric character' but if I try to set the accelerator to some other character for example (,...
Tomez
1

votes
1

answer
220

Views

How to use matplotlib blitting to add matplot.patches to an matplotlib plot in wxPython?

I am making a plot using the matplotlib library and showing it in my wxPython GUI. I am plotting a massive amount of data points from a LIDAR instrument. The thing is, I would like to draw rectangles in this plot to indicate interesting areas. But when I draw a rectangle on the same axes as the plot...
Zwarte Viltstift
1

votes
0

answer
262

Views

How to focus on frame in wxpython?

I have set focused on the button and used the event wx.EVT_SET_FOCUS to set `focus . I am using the Raised method to brings back a frame to the foreground. The things happening here is, if I continuously press alt+tab the frame goings to fickle. It takes some time to resolve. Now my question is, how...
Dinesh
1

votes
0

answer
826

Views

How to install wxPython 2.8.12.1 with unicode support to run RIDE

Not able to run ride.py on Mac. I have tried all possible solutions provided on the website but it still says Wrong wxPython version. You need to install wxPython 2.8.12.1 with unicode support to run RIDE. wxPython 2.8.12.1 can be downloaded from http://sourceforge.net/projects/wxpython/files/wxPyth...
TAJINDER SINGH
1

votes
2

answer
73

Views

Create a wxPython app that has only one instance

I would like to create a wxPython app such that: If I run a second instance of that app (e.g., call the Python script from the shell a second time), no new instance should be created. Instead, the toplevel frame of the already running instance should be raised and focussed. The first point can be ea...
Dominique Unruh
1

votes
2

answer
120

Views

Wxpython Flashing LED indication

I am building an application working on BLE, and i would like to make a flashing LED (BLUE) that shows that connection is established. How can i make an array of flashing LED's for indication? Any example, reference will be appreciated.
schanti schul
1

votes
0

answer
33

Views

Dark color appearing on the frame while executing the cefpython code in ubuntu VM 16.04

I have referred this link. where you can see the branches from their goto examples/wxpython.py copy that file and execute the code in window platform it's working fine on window platform but in Ubuntu virtual machine 16.04 version the frame turning to dark color. Please help me on this issue.
Dinesh
1

votes
1

answer
50

Views

Error:interface_registry.cc(203) blink::mojom::SensitiveInputVisibility

Not sure of getting the error either the cefpython or wxpython. Below are the different versions used and Error log. Version using:- CEF Python 57.0 Python 2.7.12 64bit wxPython 4.0.0a1 gtk2 (phoenix) Error:- [0405/131530.427048:ERROR:interface_registry.cc(203)] Failed to locate a binder for interfa...
Dinesh
1

votes
0

answer
53

Views

How to add specific files to a wx.TreeCtrl

I am trying to re-create part of a directory tree by using wx.TreeCtrl. I can add all directories and the specific files I am looking for. Now, I would like to not show the directories that do not contain the specific files. For example, if my directory tree looks like this and I only want to show ....
Marc
1

votes
0

answer
46

Views

wxPython panel not filling parent

I have a wxPython frame containing a single custom panel. I'd like this panel to fill its frame. class MyCustomFrame(wx.Frame): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.mainPanel = MyCustomPanel(self) self.SetAutoLayout(True) Yet for some reason, the custom panel c...
Draconis
1

votes
0

answer
51

Views

wx.dataview.TreeListCtrl changing column title

I'm using the TreeListCtrl in Python3 and am building a list of items within this column, with the objective to change the current column title and update the list of the items within which. How can I go about changing the column title in the simplest manner? I tried deleting the column with DeleteC...
user9599718
1

votes
0

answer
37

Views

Wxpython because the code “plt.pause (0.1)” shows two windows, how to merge into one

In the program, after testing, because wxpython originally provided the display of the form, the code 'plt.pause(0.1)' will also display a figure form. Finally, the two forms exist at the same time. How can we make the effect in the window of 'plt.pause' is displayed in the wxpython frame window, th...
David
1

votes
0

answer
22

Views

Why doesn't matplotlib widget blitting work with wxpython?

The following code example uses the RectangleSelector widget, so that we should see a continuously updated rectangular patch over the plot. However, nothing can be seen, unless we set useblit=False. What's wrong? This is with matplotlib 2.2.2 and wxpython 4.0.1 on linux. The tkagg backend works fine...
Tavin Cole
1

votes
1

answer
21

Views

How to get ride of empty squares in wx.dataview.TreeListCtrl

I am using the following code to create a TreeList: tree = wx.dataview.TreeListCtrl(self, -1, style=wx.TR_DEFAULT_STYLE | \ wx.TR_FULL_ROW_HIGHLIGHT | \ wx.TR_EDIT_LABELS tree.AppendColumn('Item Name') node = tree.AppendItem(parent_node, text) And for some reason there's an empty square (see image b...
Gabrielle
1

votes
0

answer
24

Views

How to use a value from a class in another class in wxpython

I have a radio box that the user can select a value. Later, when the user clicks the 'run' button, I want to get that radio box value and use it. I can't figure out how though. Essentially, how do you get the value of a radiobox selection and use it elsewhere in the program. Other ways I have trie...
1

votes
0

answer
51

Views

wxPython: Change the header's color

I would like to know if there is a way to change the background colour of this part of the window in wxPython: I already know how to change the title or the icon but I didn't find anything for the colour. I use Python 3.6 on Windows 10.
Rostan
1

votes
0

answer
48

Views

wx.ScrolledWindow scrollbar is going to the top after closing subframe

In my app I need to make around 150 dynamically created panels with descriptions and buttons. Each button will show another url in new window. When you scroll main window for example to middle and click button on panel new frame with url shows. When you close it scrollbar goes to the top of main...
Max
1

votes
0

answer
37

Views

Autocomplete in WxPython Phoenix STC

I am creating a WxPython App which has an STC widget. Basically, it is a code editor which has syntax highlight. But as you know autocomplete is a very important feature in code editors I want to also have it in my editor. The docs list many methods for Autocompletion but don't have any snippet or t...
1

votes
0

answer
23

Views

Add scrollbars in wxpython, but it doesn't appear

I saw a lot of scrollbars on the web, but my situation is different, with more wx.FlexGridSizer objects.The scoller dosen't appear. class MPL_Frame(wx.Frame): '''MPL_Frame可以继承,并可修改,或者直接使用''' # global task def __init__(self, title='MPL_Frame Example In wxPython', size=(130...
David
1

votes
0

answer
29

Views

How to resize Panel (wxPython) after adding to BoxSizer

I want to make a 'mouse over' effect on some panels... When the mouse is over, I want to increase the size of the panel and when mouse leaves, the panel goes back to the original size. I was able to change size but the Box Sizer will not move, so, the max size is limited to the original, and if I de...
Gabrielle
1

votes
1

answer
52

Views

Return combo box choices as a parameters in wxpython

i am working on following piece of code. i want to return combo box choices as parameters and use in another function. As combo box comes up with event handler i don't find an easy way to call it in another function. my code looks like following self.combo_box_product = wx.ComboBox(self.panel_1, wx....
akp
1

votes
0

answer
118

Views

wx python printing and print preview

I have two question one about python in general and another about Wx.python , I am using python 3 , from example of wxpython printer example scripts two thing got my mind code pastbin https://pastebin.com/PND7NsXw about general in python , all function is executing without calling in same class ,I...
Ravyar Tahir
1

votes
0

answer
31

Views

wx python panel.Destroy() causes python 2 crash

I've been designing a python program using wx designed to basicly copy files from one directory to another. Basically. The problem is, when from my main screen, you click go, the hole thing just up and crashes. WITH NO ERROR! I have posted code snippets below, and hopefully someone can help me with...
lara stardust
1

votes
0

answer
220

Views

Wxpython installation failed

I'm trying to get wxpython to work with python3.7.0 (32) I installed it using 'pip install wxpython', so I assume that there no compatibility problems. this is the result: Traceback (most recent call last): File 'E:\Scratch\Test.py', line 9, in import wx File 'C:\Python37\wx\__init__.py', line 17,...
Edgar
1

votes
0

answer
22

Views

How to add a scroll bar to the wxpython window, you can look at the two vertical grids

I have two grid tables in my program, but I can only see one without scroll bar. I saw it on the Internet with Boxsizer, but after I tried it, the window of gird became very small. The table is not clear. Below is the code. I am not familiar with the setting relationship between Boxsizer and scrollb...
David
1

votes
2

answer
46

Views

wxPython multiline password field

In wxPython, the password style works only for single line text controls. I need a multiline password field. I've thought of two ways: I've created a font with a single glyph (solid dot) in every code point. However, I can understand users not wanting fonts installed on their machines willy-nilly...
Den
1

votes
0

answer
34

Views

GUI plot refreshing incorrectly on wxpython panel

Ok, so I've been tasked with creating a VERY simple GUI at work (I'm an intern). The task is to eventually connect to a machine and process real data, but right now I'm working on randomly generated sine data with noise. I've chose to work in Python 3.0, and use wxpython to create my GUI components....
Faiz Haris
1

votes
0

answer
52

Views

Wxpython. wx.richtext.RichTextCtrl. List of URLs

There is an object: self.m_textCtrl_text = rt.RichTextCtrl(self.panel, -1, self.text, wx.DefaultPosition, (500, 100)) Periodical I insert in it hyperlinks: urlStyle = rt.RichTextAttr() urlStyle.SetTextColour(wx.Colour(attrs['fill'])) urlStyle.SetFontUnderlined(strToBool(attrs['underline'])) self.m_t...
ioprst
1

votes
1

answer
33

Views

wxPython gauge freezes on Linux

I'm struggling with wxPython on Linux. After a lot of time and investigation I have reduced my program to the minimum to show you one of the issues I have encountered. I could reduce it to a quite small code example using only one gauge in the window which is updated by a Timer. My first problems ap...
skrohmer
1

votes
1

answer
101

Views

How do I remove border line between the plot and the navigation toolbar? (matplotlib with wx)

I am trying to remove the border between the plot and the navigation toolbar. The plot class I am using is as follows. import wx import matplotlib as mpl from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas from matplotlib.backends.backend_wxagg import NavigationToolbar2W...
Koray Beyaz
1

votes
1

answer
31

Views

Trying the TreeCtrl widget, getting a runtime error on exit

I'm new to wxPython and am playing around with the TreeCtrl widget. I made this TreeCtrl test which has the following behaviour : - Left click selects item, right click deselects it - Children of item (if any) are automatically selected/deselected as well It works as intended but I get a runtime err...
user9026655
1

votes
1

answer
40

Views

wxpython CallAfter not changing GUI

I needed a start and stop button for reading data continuously with a while loop, so I used the first example in here https://wiki.wxpython.org/LongRunningTasks. Then I wanted to change a graphic in continuous as well but I couldn't do it so to simulate that I tried to just change a TextCtrl. So I u...
Guitarist
1

votes
0

answer
323

Views

Telebot package problem with importing “Types”

When i want to run my bot in pycharm, I receive this error: \Desktop\st\taxi\taxi.py', line 5, in from telebot import types ImportError: cannot import name 'types' from 'telebot' (C:\Users\User\Desktop\st\taxi\venv\lib\site-packages\telebot\__init__.py) Here is my code: import config from telebot i...
Nodir Malikov

View additional questions