Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: tkinter touchscreen scrolling - button press makes unwanted scrolling
Post: RE: tkinter touchscreen scrolling - button press m...
Ok, I entirely commented out the on_press function and it seems to work fine.
Also I added some code to on_touch_scroll. Pushing the buttons now does not make the screen jump! But I cannot slowly s... |
|
nanok66 |
GUI |
1 |
3,987 |
Dec-28-2020, 10:00 PM |
|
|
Thread: tkinter touchscreen scrolling - button press makes unwanted scrolling
Post: tkinter touchscreen scrolling - button press makes...
Hi all,
I have a python tkinter GUI that I am using with a touchscreen. One page on my GUI has more buttons than can fit in one screen, so I found some excellent code that creates a vertical scrolle... |
|
nanok66 |
GUI |
1 |
3,987 |
Dec-28-2020, 08:57 PM |
|
|
Thread: Made new instance - button still goes to old instance
Post: RE: Made new instance - button still goes to old i...
Gah I figured it out! Nevermind! My solution is below for anyone stuck with a similar question.
class CycleTimesPage(Page):
def __init__(self, main, parent):
super().__init__(parent, 'C... |
|
nanok66 |
GUI |
6 |
2,957 |
Nov-05-2020, 11:55 PM |
|
|
Thread: Made new instance - button still goes to old instance
Post: RE: Made new instance - button still goes to old i...
Ok very cool, it took some playing around but I got some pages to update that way.
I am still stuck on the original issue of not knowing how to refer back to the value of the labels I created on th... |
|
nanok66 |
GUI |
6 |
2,957 |
Nov-05-2020, 09:12 AM |
|
|
Thread: Made new instance - button still goes to old instance
Post: RE: Made new instance - button still goes to old i...
Ok I'll definitely try the function. And wow that's a lot of other improvements! Will take me second to work that all in, but thanks!
I would have rather updated them but I don't know how to updat... |
|
nanok66 |
GUI |
6 |
2,957 |
Oct-30-2020, 07:45 AM |
|
|
Thread: Made new instance - button still goes to old instance
Post: Made new instance - button still goes to old insta...
Hi,
I have a large python GUI program and I wanted to add a button that "resets all settings to default"
I have 3 pages of my program that I need to create new instances of these pages to "reset the ... |
|
nanok66 |
GUI |
6 |
2,957 |
Oct-29-2020, 07:06 AM |
|
|
Thread: Issue referencing new instance from other class
Post: RE: Issue referencing new instance from other clas...
@deanhystad Yeah the intermediary sounds like the way I need to go because it is a bit more complicated than making the button responsible for making the thread, but I accidentally cut that code out ... |
|
nanok66 |
General Coding Help |
3 |
2,213 |
Jul-31-2020, 02:07 AM |
|
|
Thread: Issue referencing new instance from other class
Post: Issue referencing new instance from other class
Hi all,
I have a large program that I distilled down hopefully to the bare issue that I am having. I have a GUI button that starts a thread. This thread would be started and stopped many times so i... |
|
nanok66 |
General Coding Help |
3 |
2,213 |
Jul-30-2020, 03:00 AM |
|
|
Thread: changing tkinter label from thread
Post: RE: changing tkinter label from thread
Ok I knew I was missing a few fundamentals. I put in those changes and it's working! Thanks Yoriz!
Appreciated as well menator01! |
|
nanok66 |
GUI |
3 |
7,331 |
Jun-07-2020, 01:37 AM |
|
|
Thread: changing tkinter label from thread
Post: changing tkinter label from thread
Hi all,
I am getting pretty far with my GUI but I have one major issue I cannot solve. I stripped down my program to the absolute bare minimum of my issue. I think the issue is that I cannot over w... |
|
nanok66 |
GUI |
3 |
7,331 |
Jun-06-2020, 05:22 AM |
|
|
Thread: how to use getter as argument in function
Post: RE: how to use getter as argument in function
Sorry I guess I only vaguely stated my question. I was having trouble bringing my getter value through my new_setting function.
But I found my issue. Weird combining of syntax and misplaced lines... |
|
nanok66 |
General Coding Help |
3 |
3,248 |
May-13-2020, 09:15 AM |
|
|
Thread: how to use getter as argument in function
Post: how to use getter as argument in function
Hi,
I am starting to become familiar with using getters and setters but I'm stumped on this example of using a getter within a function. The closest I get when I open the tkinter page is that is say... |
|
nanok66 |
General Coding Help |
3 |
3,248 |
May-13-2020, 01:08 AM |
|
|
Thread: how to cancel scheduler module event
Post: how to cancel scheduler module event
Hi,
I am stuck trying to figure out how to cancel an event that was created using the scheduler module. Here are the scheduler docs:
https://docs.python.org/3/library/sched.html
I am not sure how... |
|
nanok66 |
General Coding Help |
0 |
2,133 |
May-11-2020, 10:31 PM |
|
|
Thread: how to check for thread kill flag
Post: RE: how to check for thread kill flag
I think I will just add hundreds of if statements to my code. Problem solved.
I'm not sure how to delete this post so I will Set Solved. |
|
nanok66 |
General Coding Help |
1 |
2,164 |
May-09-2020, 10:06 PM |
|
|
Thread: how to check for thread kill flag
Post: how to check for thread kill flag
Hi,
I am looking for a way to kill a thread immediately and I have some working code that accepts keyboard input (the letter Q) to kill (by setting flag _running to False) but the code is not killed ... |
|
nanok66 |
General Coding Help |
1 |
2,164 |
May-09-2020, 08:10 PM |
|
|
Thread: function/nonetype object is not iterable
Post: RE: function/nonetype object is not iterable
Cool, changed my use of parenthesis like deanhystad suggested.
Commenting out my subprocess code, this script works now.
import time
import sched
import subprocess
from functools import partial
... |
|
nanok66 |
General Coding Help |
5 |
4,037 |
May-08-2020, 07:39 PM |
|
|
Thread: function/nonetype object is not iterable
Post: RE: function/nonetype object is not iterable
Ok my bad.
First traceback:
Error:Traceback (most recent call last):
File "C:/Users/Darwin/mu_code/sampleSubprocess2.py", line 41, in <module>
sub = subprocess.Popen(partial(runCycle, cyc... |
|
nanok66 |
General Coding Help |
5 |
4,037 |
May-06-2020, 09:42 PM |
|
|
Thread: function/nonetype object is not iterable
Post: function/nonetype object is not iterable
Hi all,
I am getting error "functools.partial object not iterable". I google searched this issue and have read multiple answers about this issue but still cannot figure out how to rewrite my code to... |
|
nanok66 |
General Coding Help |
5 |
4,037 |
May-06-2020, 09:06 PM |
|
|
Thread: kill thread or process asap, even during time.sleep
Post: RE: kill thread or process asap, even during time....
Whoa game changer!!! Writing a pass function to use with it makes it work just like time.sleep! Perfect!
import time
import sched
s = sched.scheduler(time.time, time.sleep)
def delay(set_time):
... |
|
nanok66 |
General Coding Help |
4 |
2,928 |
Apr-29-2020, 10:13 AM |
|
|
Thread: kill thread or process asap, even during time.sleep
Post: RE: kill thread or process asap, even during time....
Yeah I really like the idea of not having time.sleep in this code. I have hundreds of these delays in this program. But I'm really not sure how to make it periodically check for 'time_until_next_ste... |
|
nanok66 |
General Coding Help |
4 |
2,928 |
Apr-28-2020, 04:59 AM |