1

I'm using TKinter and I have a really weird situation.

I've basically created a small application that has Listbox, two Buttons, and an Entry. The two Buttons add and remove items from the Listbox, respectively, and the Entry specifies the name of the item added. This is all encapsulated in a Frame.

To the right of this Frame is a near identical one, except the Listbox of this Frame contains items that are parented to the ones on the left. Basically, 'lists' or 'categories' are created in the first Listbox, and then items are added to those lists in the second Listbox.

TL;DR: Here are three screenshots of the application in use, to make things easier to visualize.

In my application, there can be no two categories of the same name. If there are two categories of the same name, tkMessagebox.showerror(...) is called. This works correctly and my program still functions correctly, except I cannot highlight or modify either of the Entry fields anymore.

I at first thought they were for some reason being set to DISABLED or readonly, but I know this cannot be because the buttons of my program still work, and when I press 'Add Category', the contents of its Entry field are copied to the Categories list and then removed from the Entry field. Entry fields are not modifiable, even via code (.delete(...) and .insert(...) calls don't work) when set to DISABLED or readonly, yet my application is clearly able to use these calls.

Furthermore, when I mouse over the Entry fields, my cursor switches to the 'reading cursor' (like when you mouse over this text). When I attempt to click, click and drag, or type, nothing happens. It's as if the Entry fields have permanently lost focus.

1
  • Can you give us a very small program that reproduces this behavior? Without seeing your actual code, all we can do is guess. Jun 23, 2014 at 19:30

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.