Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Python isdigit() and None
Post: RE: Python isdigit() and None
Thaks all for your replies and suggestions.
I am aware of several potential solutions. Being new to Python, I just wanted to be sure I'm not doing something wrong.
I also found similar isseus with In... |
|
samtal |
General Coding Help |
6 |
8,182 |
May-06-2021, 02:54 PM |
|
|
Thread: Python isdigit() and None
Post: Python isdigit() and None
Hi,
Python sys.version_info(major=3, minor=7, micro=9, releaselevel='final', serial=0) on Windows 10 (64)
Thonny 3.3.6
I try to use the isdigit() function to test an input, making sure it is a legal... |
|
samtal |
General Coding Help |
6 |
8,182 |
May-06-2021, 12:59 PM |
|
|
Thread: tkinter control break a while loop
Post: tkinter control break a while loop
Hi
I have a basic simple Python 3.5 tkinter program on raspberry pi 3 that runs a stepper motor driven lift.
In the program I have a while loop that generates a square wave that drives the lift to end... |
|
samtal |
General Coding Help |
0 |
2,396 |
Apr-29-2021, 08:26 AM |
|
|
Thread: Listbox data
Post: RE: Listbox data
My hack is by using the listbox.curselection() to find the lower and upper list selection, and then use the working listbox.get(startindex,endindex).
This is not a full solution, as it does not enable... |
|
samtal |
GUI |
5 |
6,746 |
Oct-18-2018, 03:19 PM |
|
|
Thread: Listbox data
Post: RE: Listbox data
Yes, true, my list is a list of list, or two-dimensional array.
The fact is that when I use listbox.get(start,end) it runs perfectly as alist (or array).
only in listbox.selection_get I get the error.... |
|
samtal |
GUI |
5 |
6,746 |
Oct-18-2018, 11:40 AM |
|
|
Thread: Listbox data
Post: Listbox data
Hi,
On raspberry-pi, Python 3.5, I am trying the use of tkinter Listbox.
I noticed that when filling up a Listbox with a pure Python List, while the expected outcome is a list, it is actually tuple.
... |
|
samtal |
GUI |
5 |
6,746 |
Oct-18-2018, 08:01 AM |
|
|
Thread: Python catch mouse click in pure text, no graphics
Post: RE: Python catch mouse click in pure text, no grap...
With buran's blessed directives I could easily solve the last question by myself. Sorry to have bothered others.
Coming from C, C# and new to Python, I totally ignored (forgot) the Python's Global ... |
|
samtal |
General Coding Help |
7 |
7,256 |
Sep-10-2018, 03:02 PM |
|
|
Thread: Python catch mouse click in pure text, no graphics
Post: RE: Python catch mouse click in pure text, no grap...
Thank you for your reply.
The suggested works perfectly, but unfortunately it does not fully resolve my problem. I need the click to be within the while loop.
I have a while loop that runs by reading... |
|
samtal |
General Coding Help |
7 |
7,256 |
Sep-08-2018, 10:51 AM |
|
|
Thread: Python catch mouse click in pure text, no graphics
Post: RE: Python catch mouse click in pure text, no grap...
Yes, pynput seems to be a simple mouse event-catcher.
I tested it out in a very simple program:
from pynput import mouse
def on_click(x, y, button, pressed):
print(button, pressed, listener)
lis... |
|
samtal |
General Coding Help |
7 |
7,256 |
Sep-06-2018, 06:03 AM |
|
|
Thread: Python catch mouse click in pure text, no graphics
Post: RE: Python catch mouse click in pure text, no grap...
The OS is Rasbian on RaspberryPi 3, using Python |
|
samtal |
General Coding Help |
7 |
7,256 |
Sep-03-2018, 07:41 PM |
|
|
Thread: Python catch mouse click in pure text, no graphics
Post: Python catch mouse click in pure text, no graphics
Hi,
I wish to catch mouse click (all buttons) in a pure text, non-graphic program.
Example: I have a While loop that prints a list. I wish to exit or do something in the loop on a mouse click.
I can ... |
|
samtal |
General Coding Help |
7 |
7,256 |
Sep-03-2018, 03:18 PM |