jarvisteach / appJar

Simple Tkinter GUIs in Python
http://appJar.info
Other
613 stars 68 forks source link

Issue(s) with table rendering after .deleteTableRow #482

Closed bitassassin closed 6 years ago

bitassassin commented 6 years ago

Okay, bear with me as this may be two bugs:

In .addTable, I have set the following function: def fDeleteRow(dRow): app.deleteTableRow("entryTable", dRow)

The .addTable looks like this: app.addTable("entryTable", [["Item", "Description"]], action=fDeleteRow, addRow=fAddRow, actionHeading="Delete", addButton="Add Item", actionButton="X", showMenu=True)

The window looks as follows: pre-anything

You'll notice the Add Item button doesn't render. It does that once you hover over it: mousehover_over_button

So, the next step is to insert test entries: test_entries

And to click the 'X': clicked_delete_row_2

Which generates the following error: clicked_delete_row_2_dbg

The bonus round is deleting all entries and trying to remove that last pesky null row: bonus_upon_final_item_deletion

Which generates the following: bonus_upon_final_item_deletion_dbg

If these are not bugs, my apologies, I haven't used python in quite some time.

Regards, Bits

jarvisteach commented 6 years ago

Hi @bitassassin - thanks for raising this, these are definitely bugs.

The second one was introduced when a change was made to allow multiple buttons in the action column, it seems to have broken a bunch of things that got through testing. The small [x] button is another issue that has already been raised.

The first issue I'm not able to replicate on my platform (I'm on Mac) - what platform are you on?

jarvisteach commented 6 years ago

Closing this as main issue has been resolved. I can;t reproduce the issue with the add button, if you have anything to add (platform, python version, etc) - please add it to the new issue I created #502