-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can i add a variables which you can put a half of kilos for customer bill? using python #37
Comments
Heres my code: from tkinter import*
#====================================All Functions===============================
\t\tXYZ- Inventory
{str("="*47)}
if name=="main": |
I don't know how you stumbled upon this repo, as your issue is completely unrelated (I don't think you're even using seamseg). What you're looking for are floats. When you're comparing |
Errors:
Traceback (most recent call last):
File "C:\Users\Mila\AppData\Local\Programs\Python\Python312\Lib\tkinter_init_.py", line 1968, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "c:\Users\Mila\Desktop\Project Files\Inventory\billing.py", line 297, in add_update_cart
elif int(self.var_qty.get())>int(self.var_status.get()):
^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '1.5'
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Mila\AppData\Local\Programs\Python\Python312\Lib\tkinter_init_.py", line 1968, in call
^^^^^^^^^^^^^^^^
elif int(self.var_qty.get())>int(self.var_status.get()):
^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '1.5'
Images:
The text was updated successfully, but these errors were encountered: