Go to advanced search

by picandies
Mon Jun 24, 2019 8:06 pm
Forum: Compute Module
Topic: compute moduel upgrade (rpi4)
Replies: 2
Views: 170

compute moduel upgrade (rpi4)

When will the compute module get similar rpi4 upgrades (such as more memory, usb3, faster processing)?
They've kinda kept their specs in sync, hope it continues for ease of development.
by picandies
Tue Mar 26, 2019 8:53 pm
Forum: General discussion
Topic: Prevent Tkinter window minimize
Replies: 15
Views: 524

Re: Prevent Tkinter window minimize

Thanks for the good info (never heard of "unmap") & also the sample code---about to go give it a try!
by picandies
Mon Mar 25, 2019 10:25 pm
Forum: General discussion
Topic: Prevent Tkinter window minimize
Replies: 15
Views: 524

Re: Prevent Tkinter window minimize

How do you capture the minimize event (when you click on _ in the window corner). At least then I can have the callback maximize it.

Is this actually doing an iconify? (not sure what that is), If so, how do you capture that?
by picandies
Mon Mar 25, 2019 4:53 pm
Forum: General discussion
Topic: forcing app to stay on top
Replies: 2
Views: 156

Re: forcing app to stay on top

BZT--Thanks! those are interesting suggestions, never heard of xdotoll. Seems like a bit of arm wrestling, but sometimes only brute force works. One concern is depending on what file my app work is opening, my current os call looks like: os.system('libreoffice '+files[names]) , where files[] is a li...
by picandies
Mon Mar 25, 2019 4:20 am
Forum: General discussion
Topic: forcing app to stay on top
Replies: 2
Views: 156

forcing app to stay on top

I have a tkinter program , where one button employs an os.system call os.system('theapp') that runs a standard rpi editor app. This starts out fine, with the app appearing on top of tkinter, ready to use. However if tkinter is accidentally touched, the app disappears behind tkinter & remains out of ...
by picandies
Sun Mar 24, 2019 4:44 am
Forum: General discussion
Topic: Prevent Tkinter window minimize
Replies: 15
Views: 524

Re: Prevent Tkinter window minimize

I have done it myself, but can't remember how, it was using Python 2.7, and it might have still been there but disabled, or maybe even just did nothing when clicked. I recall it was a little problematic. If no one else can provide the answer I'll see if I can dig out what I did. I'd sure appreciate...
by picandies
Fri Mar 22, 2019 11:47 pm
Forum: General discussion
Topic: Prevent Tkinter window minimize
Replies: 15
Views: 524

Re: Prevent Tkinter window minimize

Hi andyroo I don't think your suggestions do any of these 1) Prevent the minimize button from functioning 2) Remove the only minimize button from the corner of the frame 3) Capture the minimize event & cause it to be undone (effectively ignored) Minimize is THE ONLY thing to be affected. The title b...
by picandies
Fri Mar 22, 2019 7:25 pm
Forum: General discussion
Topic: Prevent Tkinter window minimize
Replies: 15
Views: 524

Re: Prevent Tkinter window minimize

How do you either:

1) Prevent the minimize button from functioning
2) Remove the only minimize button from the corner of the frame
3) Capture the minimize event & cause it to be undone (effectively ignored)
by picandies
Fri Mar 22, 2019 2:14 pm
Forum: General discussion
Topic: Prevent Tkinter window minimize
Replies: 15
Views: 524

Re: Prevent Tkinter window minimize

Use openbox config
WHAT????!! this is a python program using tkinter...it this a python? or a tkinter command or library

How would you click on something? Your explanation needs redone.
by picandies
Fri Mar 22, 2019 7:44 am
Forum: General discussion
Topic: Prevent Tkinter window minimize
Replies: 15
Views: 524

Prevent Tkinter window minimize

Hello, using tkinter on rpi3...I have a window & need to prevent it from being minimized. Using root.overrideredirect(True) is not an option, since it removes the top bar & all 3 controls (min/max/close) Even when I set root.resizable(width=FALSE, height=FALSE) , the window size can't be dragged, bu...
by picandies
Thu Mar 07, 2019 10:12 pm
Forum: General discussion
Topic: rainbow screen troble
Replies: 6
Views: 235

Re: rainbow screen troble

Are you using NOOBS? I thought I saw something about it not working with noobs...but not sure if/how that would make any difference. I'm using the latest NOOBS setup.
by picandies
Thu Mar 07, 2019 8:03 am
Forum: General discussion
Topic: rainbow screen troble
Replies: 6
Views: 235

Re: rainbow screen troble

so what does this supposedly do?
Remove Rainbow Screen
by picandies
Thu Mar 07, 2019 4:04 am
Forum: General discussion
Topic: rainbow screen troble
Replies: 6
Views: 235

rainbow screen troble

I have a nice custom image at bootup, but want the rainbow screen to go away...using latest stretch & rpi3. I found these steps & repeated them EXACTLY & re-tried them 3 times...but during each boot the rainbow square (4 colors) keeps showing up...are these invalid edits? The display is a LCD plugge...
by picandies
Sun Mar 03, 2019 2:31 am
Forum: General discussion
Topic: setting rules for access
Replies: 0
Views: 88

setting rules for access

What are the proper device "rules" to set for restricting access to usb flash sticks? I need to restrict access so that my python code will grant (or block) only verified users (users who have enrolled) access & allow their flash memory sticks to gain file access. Other users who plug in a stick sho...
by picandies
Fri Feb 22, 2019 10:24 am
Forum: Python
Topic: Controlling storage via python
Replies: 8
Views: 656

Re: Controlling storage via python

If the USB are ruled so as not to activate any auto run programs and you have no access to a command line without a password / user account then it matters not who opens the case and plugs a USB stick in. This has NOTHING to do with opening a case. The USB jack is right on the side of the unit. You...
by picandies
Thu Feb 21, 2019 11:16 pm
Forum: Python
Topic: Controlling storage via python
Replies: 8
Views: 656

Re: Controlling storage via python

I think you mean that there is no *ex*ternal access...in which case, what is the actual problem

Why do you keep trying to change the question? ... As noted, the tech will be using the memory stick , once the password is accepted. How do you enable/disable the access in python 3.5?
by picandies
Thu Feb 21, 2019 5:48 pm
Forum: Python
Topic: Controlling storage via python
Replies: 8
Views: 656

Re: Controlling storage via python

Thanks for the note about these rules.....however the python program need to turn the access on/off...would this change all flash sticks access (desired), from within python?
by picandies
Thu Feb 21, 2019 5:17 pm
Forum: Python
Topic: Controlling storage via python
Replies: 8
Views: 656

Re: Controlling storage via python

Let's stick to the question, please. This part of a machine, so it's not going anywhere. There is no internal access. It is not a high-security setup. However, the causal user should not be able to use a stick, unless the system give authorization to that person.
by picandies
Thu Feb 21, 2019 3:06 pm
Forum: Python
Topic: Controlling storage via python
Replies: 8
Views: 656

Controlling storage via python

I need to block use of usb memory sticks (flash sticks), so as to prevent Trojans, data theft, etc by unauthorized users. In my python program I have a password entry for only authorized users to turn on access to memory sticks so that they can use them for legit purposes. How do I actually turn on/...
by picandies
Mon Jan 21, 2019 1:25 am
Forum: General discussion
Topic: can't upgrade Geany?
Replies: 3
Views: 296

Re: can't upgrade Geany?

Change your sources from Stretch to Buster run: what do you refer to? Do you need to download these files? By the by is their a reason you need a newer version of geany ? Seems like if the version is 3 years old, there would be a fair number of fixes & improvements now (of course that might be unfo...
by picandies
Sun Jan 20, 2019 12:45 am
Forum: General discussion
Topic: can't upgrade Geany?
Replies: 3
Views: 296

can't upgrade Geany?

According to geany.org, the latest version is 1.34... I noticed my rpi with stretch is running 1.29, which is from way back in 2016!!! What is the geany upgrade command? I tried the following, but was told 1.29 is the newest version ...A LIE...1.29 is about 3 years old. [email protected]:~ $ sudo apt-g...
by picandies
Sat Jan 19, 2019 9:28 pm
Forum: General discussion
Topic: Tkinter destroy ...not always working
Replies: 0
Views: 89

Tkinter destroy ...not always working

Tkinter destroy ...not always working I have a form with a button that makes a popup a (smaller form with a few buttons): In the main window code makePopUpOne(p1) this calls: def makePopUpOne(p1): w.frmMotorCtrl = Frame(w.MainFrame) w.frmMotorCtrl.configure(relief=GROOVE)...various graphics commands...
by picandies
Thu Jan 03, 2019 7:13 pm
Forum: General discussion
Topic: make one-shot
Replies: 12
Views: 503

Re: make one-shot

I check it at various points in a large code, not just wait at one point. That might not be practical if the code is large..it might not be read often enough..then the timing would be off. Also, would the pin name definition be known everywhere in the program (such as in different classes). Seems l...
by picandies
Wed Jan 02, 2019 7:48 pm
Forum: General discussion
Topic: make one-shot
Replies: 12
Views: 503

Re: make one-shot

I just use time.time(). Set a start time and then keep checking against the current time eg. time.time() - start > 0.03. I am not sure of the accuracy. We cannot sit still in the code just checking the time, many other things need to be happening. At the time for stopping the pulse, we may be anywh...
by picandies
Wed Jan 02, 2019 4:32 pm
Forum: General discussion
Topic: make one-shot
Replies: 12
Views: 503

Re: make one-shot

Spawn a thread to generate the pulse via rpi.gpio. The thread can sleep during the pulse on time without holding up execution of the main program.

Do you have an example of doing it this way? I'm not sure I follow your statement, as I have never seen such a procedure.

Go to advanced search