Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: anytree implicit node?
Post: anytree implicit node?

I have a weird problem with anytree. I defined a node thus: Node(str(sensor.target),parent=tgt,index=0,action='target')Note that it is not set to any variable. However, at some point this node seems t...
gw1500se General Coding Help 0 579 Jun-07-2020, 08:42 PM
    Thread: Modifying anytree Nodes
Post: Modifying anytree Nodes

I'm using anytree 2.8 and I need to edit a node. Reviewing the documentation I cannot figure out how to either edit and existing node or replace it. Can someone point me in the right direction? TIA.
gw1500se General Coding Help 1 658 Jun-05-2020, 03:22 PM
    Thread: Excpetion Handling Getting Error Number
Post: RE: Excpetion Handling Getting Error Number

After some test programming I figured it out 'e' is a PermissionsError class in this case. It contains an attribute named 'errno'. I now understand e will be a specific exception class each of which w...
gw1500se General Coding Help 4 626 May-29-2020, 03:07 PM
    Thread: Excpetion Handling Getting Error Number
Post: RE: Excpetion Handling Getting Error Number

I thought all exceptions had the same format. Based on your reply I am guessing that is not true. When I print e, I get this: [Errno 13] Permission denied Depending on the permission error the numbe...
gw1500se General Coding Help 4 626 May-29-2020, 02:53 PM
    Thread: Excpetion Handling Getting Error Number
Post: Excpetion Handling Getting Error Number

I don't know why this is rocket science but I cannot find any way to get just the error number in the exception handler. All the examples show how to get the text but not the error number. The documen...
gw1500se General Coding Help 4 626 May-29-2020, 02:34 PM
    Thread: asyncio semaphore problem
Post: RE: asyncio semaphore problem

Never mind. I don't need semaphores at all. I just found the magical tkinter method wait_window.
gw1500se General Coding Help 4 601 May-29-2020, 01:48 PM
    Thread: asyncio semaphore problem
Post: RE: asyncio semaphore problem

Thanks for the reply but I don't think I follow. The code that calls this dialog is a thread that manages the main/root dialog. The user clicks on a button which triggers the sub-dialog but at that po...
gw1500se General Coding Help 4 601 May-29-2020, 12:37 PM
    Thread: asyncio semaphore problem
Post: asyncio semaphore problem

I'm trying to wait for a tkinter dialog response to complete to get the results. I'm getting what seems to be a common problem but none of the threads I found seem to apply. self.lock=asyncio.Lock() s...
gw1500se General Coding Help 4 601 May-28-2020, 07:01 PM
    Thread: Change Label Every 5 Seconds
Post: RE: Tkinter - Change Label Every 5 Seconds

Thanks. I think I see said the blind man as he picked up a hammer and saw.
gw1500se GUI 4 1,704 May-26-2020, 05:32 PM
    Thread: Change Label Every 5 Seconds
Post: RE: Tkinter - Change Label Every 5 Seconds

Thanks for that link. I now see what to do but not how to do it. I am struggling trying to figure out what to use for 'after'. The window in question is saved as self.root. If I understand my code sho...
gw1500se GUI 4 1,704 May-26-2020, 04:59 PM
    Thread: Change Label Every 5 Seconds
Post: Change Label Every 5 Seconds

I have written a loop that changes a Label. However, I don't know how to wait until the changed label is displayed to start my time delay. If I change the Label then immediately time.sleep(5), the lab...
gw1500se GUI 4 1,704 May-26-2020, 04:06 PM
    Thread: Python 3 Elementtree and Comment First
Post: RE: Python 3 Elementtree and Comment First

You are correct. XML declaration. I didn't know about that method. That fixed it. Thanks.
gw1500se General Coding Help 3 922 May-25-2020, 09:02 PM
    Thread: Python 3 Elementtree and Comment First
Post: Python 3 Elementtree and Comment First

I am building an xml file using ElemetTree but I need to insert the encoding comment first. Quote:<!--version="1.0" encoding="UTF-8"--> It seems like I have to create the root node first and the...
gw1500se General Coding Help 3 922 May-25-2020, 02:48 PM
    Thread: Creating Nested Dictionaries Confusion
Post: RE: Creating Nested Dictionaries Confusion

Great, thanks. I see now what I did wrong and why.
gw1500se General Coding Help 2 660 May-18-2020, 11:16 PM
    Thread: Creating Nested Dictionaries Confusion
Post: Creating Nested Dictionaries Confusion

I'm afraid I am not understanding dictionaries. After reading various articles the only thing I learned is I don't know what I am doing. To start, I am trying to produce this json structure. Output:{...
gw1500se General Coding Help 2 660 May-18-2020, 07:52 PM
    Thread: Python 3 change label text
Post: RE: Python 3 change label text

I think I figured out what to do. If I 'destroy' the custom label then I can replace it. The problem is, I can't figure out how to add 'destroy()' to that recipe. Can someone help? TIA. BTW, I can si...
gw1500se GUI 6 1,553 May-08-2020, 03:42 PM
    Thread: Python 3 change label text
Post: RE: Python 3 change label text

I updated my previous post while you were adding yours. I just remembered it is not a normal Label. Doh!
gw1500se GUI 6 1,553 May-08-2020, 01:56 PM
    Thread: Python 3 change label text
Post: RE: Python 3 change label text

Oh, wait. I forgot I'm not making a true text label. To use my custom font I had to use this recipe. It creates an image so I need to figure out how to modify it so I can change the image.
gw1500se GUI 6 1,553 May-08-2020, 01:48 PM
    Thread: Python 3 change label text
Post: Python 3 change label text

I have a tkinter label that I want to change. I've found several articles on how to so that but none work. If I try to use 'textvariable' I get an error that 'text' is required. If I set 'text' to '' ...
gw1500se GUI 6 1,553 May-07-2020, 06:53 PM
    Thread: PYTesseract Problem
Post: RE: PYTesseract Problem

I thought I had but that was it. Thanks.
gw1500se General Coding Help 2 1,050 Mar-26-2020, 02:11 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020