Go to advanced search

by picandies
Wed Sep 11, 2019 5:06 pm
Forum: General discussion
Topic: Door lock help
Replies: 13
Views: 295

Re: Door lock help

Can the serial automatically rcv information, while other code is on-going? I don't want to have everything grind to a halt waiting for a scan (which could occur at any time). I suppose there is a flag or something to indicate that new data is ready.
by picandies
Wed Sep 11, 2019 3:09 pm
Forum: General discussion
Topic: Door lock help
Replies: 13
Views: 295

Re: Door lock help

here is the link for the manual

http://amazonfiles.s3.amazonaws.com/ct80.rar
by picandies
Wed Sep 11, 2019 12:26 am
Forum: General discussion
Topic: Door lock help
Replies: 13
Views: 295

Re: Door lock help

You could catch the characters - have look at this:
does that work on the rpi??
got: AttributeError: module 'keyboard' has no attribute 'is_pressed'

There must be some way to read the scan values into a python app
by picandies
Tue Sep 10, 2019 5:04 pm
Forum: General discussion
Topic: Door lock help
Replies: 13
Views: 295

Re: Door lock help

Can you redefine that usb (scanner) connection as a second keyboard & have it instead read by the python program?
What if there were no entry fields in the first place--how would it be read into the program?
by picandies
Tue Sep 10, 2019 8:25 am
Forum: General discussion
Topic: Door lock help
Replies: 13
Views: 295

Re: Door lock help

How can I tell what connection type it is? It appears to be emulating a keyboard, since it tries to fill in the entries. Is there a way to redirect those so they go into the python program instead? I saw somewhere about treating a scanner as a secondary keyboard, with some examples, but can't find t...
by picandies
Mon Sep 09, 2019 5:27 pm
Forum: General discussion
Topic: Door lock help
Replies: 13
Views: 295

Door lock help

Hello: I'm using rpi4 & python to make a door lock security system. You can enter name & other info (times, logs, etc) as the program runs. To get in I have a handheld usb scanner that read a "badge" code (6 digit std barcode). The issue is the reader works, but it wants to enter the numbers into th...
by picandies
Mon Jun 24, 2019 8:06 pm
Forum: Compute Module
Topic: compute moduel upgrade (rpi4)
Replies: 12
Views: 1579

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: 972

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: 972

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: 265

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: 265

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: 972

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: 972

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: 972

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: 972

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: 972

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: 321

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: 321

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: 321

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: 118

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: 751

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: 751

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: 751

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: 751

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: 751

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/...

Go to advanced search