Go to advanced search

by mmkw43
Mon Dec 28, 2020 9:02 pm
Forum: Graphics programming
Topic: Tkinter colorpicker Cancel ?
Replies: 5
Views: 266

Tkinter colorpicker Cancel ?

This is a function using tkinter colorchooser and it works fine when I actually choose a color but when I either Cancel or X off the colorpicker the program will crash when I run the program. (The pick function is part of the "setup" class and then there's a button that saves settings and ...
by mmkw43
Fri Dec 25, 2020 4:14 pm
Forum: Python
Topic: List question
Replies: 5
Views: 232

Re: List question

I just found my code with comments and see now that [1] specified hex ? as I was reading color values. I remember I really struggled with that 5 years ago when I was writing it. Need to go back and reteach myself what I did.

see now it looks for the second string (hex) in that colorchooser result.
by mmkw43
Fri Dec 25, 2020 12:08 am
Forum: Python
Topic: List question
Replies: 5
Views: 232

Re: List question

and so goes my bad memory. it's not even a list --- thanks and happy xmas.
by mmkw43
Thu Dec 24, 2020 10:51 pm
Forum: Python
Topic: List question
Replies: 5
Views: 232

List question

Probably quicker to ask -- I can't remember what the [1] is for ? --THANKS cin = open('colors.dat','rb') cread = pickle.load(cin) cin.close() g.lb1.configure(bg=cread[0][1]) g.lb2.configure(bg=cread[1][1]) g.lb3.configure(bg=cread[2][1]) g.lb4.configure(bg=cread[3][1])
by mmkw43
Wed Dec 23, 2020 4:52 pm
Forum: General discussion
Topic: Simple screen recorder -- hotkey?
Replies: 1
Views: 80

Simple screen recorder -- hotkey?

I keep sitting here playing with this to figure it out (not documented at all in help). What is the deal with enable recording hotkey? I assumed it would be a way to start/stop recording but I'm not getting that. And -- ctrl+ ? alt+? doesn't make sense. (+ is only activated with a shift) Thanks for ...
by mmkw43
Tue Dec 22, 2020 10:57 pm
Forum: General discussion
Topic: YouTubuddy: The youtube browser you've been waiting for
Replies: 30
Views: 1259

Re: YouTubuddy: The youtube browser you've been waiting for

Haven't tried the software but best of luck to you. I'll make note of trying it in the future. WHY? I *^$@ing HATE Roku and someone needs to do something. WHY? Because Roku is now throwing advertisements INSIDE a video. Yes, they have always played before and after from time to time but I noticed st...
by mmkw43
Sun Dec 20, 2020 4:02 pm
Forum: Python
Topic: Graphics options -- tkinter antialiasing
Replies: 12
Views: 298

Re: Graphics options -- tkinter antialiasing

What is Pygtk? Should I look into it or go with gtk3?
by mmkw43
Sat Dec 19, 2020 6:52 pm
Forum: Raspberry Pi OS
Topic: RPI OS -- xscreensaver or ?
Replies: 2
Views: 114

RPI OS -- xscreensaver or ?

Do I still have to install xscreensaver and then disable it to keep the monitor from sleeping? Can't find anything in the new OS that let's me do it. ? ! -- THANKS
by mmkw43
Sat Dec 19, 2020 6:48 pm
Forum: Python
Topic: Graphics options -- tkinter antialiasing
Replies: 12
Views: 298

Re: Graphics options -- tkinter antialiasing

tkinter more limited compared to tkinter

too many senior moments lately. -- seriously.

sounds like I wish I would have gone the gtk route. never too late to start.
by mmkw43
Sat Dec 19, 2020 1:49 pm
Forum: Python
Topic: Graphics options -- tkinter antialiasing
Replies: 12
Views: 298

Re: Graphics options -- tkinter antialiasing

I don't know how I missed GTK3 (is it now 4?). When I was looking to make a GUI, everything pointed to tkinter. So, thanks for that. I watched some tutorials on youtube (the new boston -- love that guy) and it seems that GTK is very versatile. He was talking some basic widgets and just on a basic la...
by mmkw43
Sat Dec 19, 2020 1:41 pm
Forum: Python
Topic: Datetime and timestrf -- different results
Replies: 5
Views: 213

Re: Datetime and timestrf -- different results

Thanks very much, Todays project -- to get it right. A fun project to get a grasp on the math operators.
by mmkw43
Fri Dec 18, 2020 11:51 pm
Forum: Python
Topic: Datetime and timestrf -- different results
Replies: 5
Views: 213

Re: Datetime and timestrf -- different results

Huh, Had responded to this but don't see reply. Anyway -- thanks. I wasn't thinking so converted to an integer and works fine now. I had also mentioned that the hour hand doesn't advance correctly in this code. It should advance in increments at the passing of every miute -- pretty crude code I'm gu...
by mmkw43
Fri Dec 18, 2020 10:46 pm
Forum: Python
Topic: Datetime and timestrf -- different results
Replies: 5
Views: 213

Datetime and timestrf -- different results

I got this code for an analog clock online and playing with it. I'm puzzled why, when I substitute timestrf for datetime, I get a crash. I don't get it because it works fine with datetime and yet when I print out both datetime and timestrf, I get the same result. The same numbers! #if I use timestrf...
by mmkw43
Fri Dec 18, 2020 10:27 pm
Forum: Python
Topic: Graphics options -- tkinter antialiasing
Replies: 12
Views: 298

Re: Graphics options -- tkinter antialiasing

Great thanks. Will look into that for sure. Managed to make things look a bit better with canvas by changing bg color etc.
by mmkw43
Fri Dec 18, 2020 5:29 pm
Forum: Python
Topic: Graphics options -- tkinter antialiasing
Replies: 12
Views: 298

Graphics options -- tkinter antialiasing

I did an analog clock for the fun of it in Tkinter and it looks good except for the clock hands which are not smooth (lousy looking really) and searched the forum for any possible solutions to this "antialiasing" ? Anyway -- unless someone can give me some hints on maybe how to make the li...
by mmkw43
Mon Dec 14, 2020 5:45 pm
Forum: General discussion
Topic: Autostart issue Jessie > RPI OS
Replies: 4
Views: 191

Re: Autostart issue Jessie > RPI OS

Gotcha.
Thanks kindly.
by mmkw43
Mon Dec 14, 2020 3:07 pm
Forum: General discussion
Topic: Autostart issue Jessie > RPI OS
Replies: 4
Views: 191

Re: Autostart issue Jessie > RPI OS

Thanks. Yes, I see it in etc/xdg.... the lxsession folder doesn't appear in dot config. The same autostart file used to be in the path I mentioned so let me ask something very basic -- Where SHOULD it be for a python script to autostart? And why? (for my own education). Don't want to edit the file u...
by mmkw43
Sun Dec 13, 2020 7:23 pm
Forum: General discussion
Topic: Autostart issue Jessie > RPI OS
Replies: 4
Views: 191

Autostart issue Jessie > RPI OS

Another problem with an old command that was fine with Jessie but got an error with RPI OS that the folder didn't exist. I had a python script starting on boot up with -- sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart and then @/usr/bin/python3.4 /home/pi/myscript.py (3.7 now) I always hate ...
by mmkw43
Sun Dec 13, 2020 7:05 pm
Forum: Raspberry Pi OS
Topic: Changing A-F2
Replies: 2
Views: 147

Re: Changing A-F2

Ok thanks very much for reply. I really appreciate it -- did the job !
by mmkw43
Sun Dec 13, 2020 4:50 pm
Forum: Raspberry Pi OS
Topic: Changing A-F2
Replies: 2
Views: 147

Changing A-F2

In Jessie, I could --
pcmanfm>view>show hidden>.config>openbox>lxde-pi-rc.xml

and change A-F2 (which runs commands) to something else.

I've updated to the latest RPI OS and trying to find a way to do the same thing. -- THANKS
by mmkw43
Sat Dec 12, 2020 4:37 pm
Forum: Python
Topic: 3.4 > 3.7 -- more dysfunction
Replies: 11
Views: 410

Re: 3.4 > 3.7 -- more dysfunction

Thanks very much. Works great but why did I have to do it in contrast to the line I used in 3.4 ?
We're having to tell who the sudo user is? -- thanks
by mmkw43
Sat Dec 12, 2020 3:40 pm
Forum: Python
Topic: 3.4 > 3.7 -- more dysfunction
Replies: 11
Views: 410

Re: 3.4 > 3.7 -- more dysfunction

I changed my code to 'inet' and 'netmask' and it's working fine as before. But I'll take heed what you guys say about it. If I get that raspi-config thing figured out, I'm good to go. Again, more code that should probably be left for fingers on a keyboard but had it working flawlessly. Fact is as I'...
by mmkw43
Fri Dec 11, 2020 9:26 pm
Forum: Python
Topic: 3.4 > 3.7 -- more dysfunction
Replies: 11
Views: 410

Re: 3.4 > 3.7 -- more dysfunction

Ok. I've pretty much given up trying to use this script with 3.7 -- it took all of my gray matter to have it all function (100% -- always), with Jessie and 3.4 I'll play with it some more but not for long because I'm at the point where it's dangerous and may really be screwing some things up. Anothe...
by mmkw43
Fri Dec 11, 2020 3:50 pm
Forum: Python
Topic: 3.4 > 3.7 -- more dysfunction
Replies: 11
Views: 410

3.4 > 3.7 -- more dysfunction

Just created problems for myself putting a script I wrote with 3.4 on top of the new RPI OS (with 3.7). This always worked flawlessly with Jessie and 3.4. It decoded the IP address and showed it in a label. Now I get nothing -- subprocess.call('sudo ifconfig eth0',shell=True) showout = subprocess.ch...
by mmkw43
Tue Dec 08, 2020 8:42 pm
Forum: Python
Topic: WTF? -- Idle won't save, can't delete files -- WEIRD
Replies: 3
Views: 270

Re: WTF? -- Idle won't save, can't delete files -- WEIRD

Not good. Better get everything off it. Let me ask -- I'm guessing fewer failure issues with a card when you just read it over the years? Write an image once? Less life (much?) with many, many write/save instructions? Thanks much for the answer -- I have used this card a great deal. Class 10 Sandisk.

Go to advanced search