Skip to content
Advertisement

Adding button (with variables) by pressing button – tkinter

I’m making a point of sale system and trying to implement a button, that when pressed a new button appears but also, a window which asks the user to input an Item

JavaScript

*item6_qty and item6_price are declared near the beginning of the program

This is what I have so far and although the window appears, I don’t think the variables are actually set, on top of the new button appearing in the item frame. I’m not entirely sure how to go about this – do I need to use .insert for the variables?

This is the standard code I have which creates the normal button

JavaScript

Desired product

I’m not sure if I’ve provided enough code of what I’ve done to give a better picture of what I’m trying to achieve but I know large chunks of code aren’t very favoured

Advertisement

Answer

here is an example of what You could do (does this help?):

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement