Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Building command in a looping construct
Post: RE: Building command in a looping construct
Thanks. I was hung up on how to create the command string when it wasn't needed. I set up a list and that is working great. |
|
DennisT |
General Coding Help |
3 |
1,884 |
Sep-08-2020, 06:32 PM |
|
|
Thread: Building command in a looping construct
Post: Building command in a looping construct
Hi,
I'm trying to build commands in a loop. However it isn't working. Here's what I have coded:
for PtrI in range(1,16):
PNGID = "self.ShowPNG"+str(PtrI)
FID = BASEPATH+"/graph... |
|
DennisT |
General Coding Help |
3 |
1,884 |
Sep-08-2020, 05:15 PM |
|
|
Thread: Attendence System
Post: RE: Attendence System
I'm just finishing up a timeclock project. Before I started I didn't know Python. We now have a system that uses facial recognition and posts the attendance info into our ERP system.
I transfer the... |
|
DennisT |
General Coding Help |
19 |
16,667 |
Dec-14-2016, 09:38 PM |
|
|
Thread: Newbie help with simple script written for v3.3 and used on vs2.7, please?
Post: RE: Newbie help with simple script please
|
DennisT |
General Coding Help |
4 |
5,240 |
Dec-08-2016, 07:40 PM |
|
|
Thread: Unable to understand reason for error IndexError: tuple index out of range
Post: RE: Unable to understand reason for error
s/b t[0], t[1], and t[2]
t[3] is beyond the range of the tuple thus the error. |
|
DennisT |
Data Science |
4 |
54,141 |
Dec-08-2016, 07:37 PM |
|
|
Thread: gtkforum gone?
Post: gtkforum gone?
Anyone know what happened to gtkforum.com? |
|
DennisT |
News and Discussions |
0 |
2,873 |
Nov-12-2016, 09:47 PM |
|
|
Thread: [pygtk] fixed.move not working as expected
Post: RE: [pygtk] fixed.move not working as expected
I tried this in my code:
self.queue_draw()
And it seems to be what I was looking for, kind of a super self.show_all(). When I run it the screen is updated.
I also found the following (haven't teste... |
|
DennisT |
GUI |
4 |
6,147 |
Nov-10-2016, 11:36 PM |
|
|
Thread: [pygtk] fixed.move not working as expected
Post: RE: [pygtk] fixed.move not working as expected
I wasn't aware of the blocking during while loops. The logic behind that escapes me. It's a little disheartening to find out I should have split my application into threads after a large portion is ... |
|
DennisT |
GUI |
4 |
6,147 |
Oct-25-2016, 09:49 PM |
|
|
Thread: [pygtk] fixed.move not working as expected
Post: RE: [pygtk] fixed.move not working as expected
FWIW, I did try it using a GObject.timeout_add (every 300ms) and the result was the same. I'll look at this some more in the AM. |
|
DennisT |
GUI |
4 |
6,147 |
Oct-24-2016, 10:56 PM |
|
|
Thread: [pygtk] fixed.move not working as expected
Post: [pygtk] fixed.move not working as expected
Can anyone explain why the following code isn't working as I expect? What I expect is a soccer ball png image would appear in the upper left corner and make several small moves until it was in the up... |
|
DennisT |
GUI |
4 |
6,147 |
Oct-24-2016, 08:43 PM |
|
|
Thread: GTK main window calling a main window
Post: RE: GTK main window calling a main window
I suspect this issue is with matchbox. I've been able to work around the dialog issue. Using a fixed container on my main window I can control size/location. Had to use a GObject.timeout to help em... |
|
DennisT |
GUI |
4 |
6,825 |
Oct-19-2016, 09:36 PM |
|
|
Thread: GTK main window calling a main window
Post: RE: GTK main window calling a main window
OK, I'm trying to get dialogs to work the way I want. I have a 800x600 main window. I want to create a 400x200 dialog window in the center of the main window. I need to transfer data from the dialo... |
|
DennisT |
GUI |
4 |
6,825 |
Oct-18-2016, 06:51 PM |
|
|
Thread: GTK main window calling a main window
Post: RE: GTK main window calling a main window
I have been able to insert a grid into the box on a dialog. However I cannot get it to restrict the size (window is the full width of the main window) or control its location (always on bottom). |
|
DennisT |
GUI |
4 |
6,825 |
Oct-13-2016, 09:40 PM |
|
|
Thread: GTK main window calling a main window
Post: GTK main window calling a main window
I've been googling all day and can't find how to do this.
I have my main Python 3 Gtk+3 window. I want to create a overlay window (smaller than the main) that is centered on the main window. The ... |
|
DennisT |
GUI |
4 |
6,825 |
Oct-13-2016, 06:25 PM |
|
|
Thread: ValueError: invalid literal for int() with base 10: ''
Post: RE: ValueError: invalid literal for int() with bas...
It's not that I'm intent on not finding the problem string, it is that I've found the data I'm getting doesn't always follow the format Maxbotix specifies. I've seen results like 'R0000', 'RR1234', '... |
|
DennisT |
General Coding Help |
8 |
14,548 |
Oct-12-2016, 03:20 PM |
|
|
Thread: ValueError: invalid literal for int() with base 10: ''
Post: RE: ValueError: invalid literal for int() with bas...
Yes, I could do that. I guess I am a bit fixated on issubset as it seems it should filter any junk. I'm starting to suspect that there's a control character sneaking in and issubset isn't handling i... |
|
DennisT |
General Coding Help |
8 |
14,548 |
Oct-10-2016, 09:31 PM |
|
|
Thread: ValueError: invalid literal for int() with base 10: ''
Post: RE: ValueError: invalid literal for int() with bas...
Like I stated in my post. The error occurs very infrequently, once every 3-4 days. I posted here in hopes of determining what's wrong with my code without collecting masses of data for several days ... |
|
DennisT |
General Coding Help |
8 |
14,548 |
Oct-10-2016, 08:55 PM |
|
|
Thread: ValueError: invalid literal for int() with base 10: ''
Post: RE: ValueError: invalid literal for int() with bas...
I use the 9000 just as a flag that I'm beyond the range I'm interested in. My only interest is if something has approached within a meter. The exact distance isn't important for this application.
... |
|
DennisT |
General Coding Help |
8 |
14,548 |
Oct-10-2016, 05:55 PM |
|
|
Thread: ValueError: invalid literal for int() with base 10: ''
Post: ValueError: invalid literal for int() with base 10...
I have a Pyhon 3 application using a Maxbotix Ultrasonic Rangefinder (HR-USB-EZ1).
Once in a great while I'll get the following error in my debug log and the script crashes.
Error:ValueError: inval... |
|
DennisT |
General Coding Help |
8 |
14,548 |
Oct-10-2016, 05:08 PM |