Hi,
I am new here. I came here because I need help with GUI for my python project. I don't understand how to make GUI (using tkinter), so please can u help me?
My project is just code witch converts time in formate like 6.82 (you have to use . instead of ,) hour converts into 6 hours and 49 minutes. Can you help me with just simple GUI pls? I want to learn it.
I am new here. I came here because I need help with GUI for my python project. I don't understand how to make GUI (using tkinter), so please can u help me?
My project is just code witch converts time in formate like 6.82 (you have to use . instead of ,) hour converts into 6 hours and 49 minutes. Can you help me with just simple GUI pls? I want to learn it.
def enterNumber(): global FloatHours FloatHours = input('FloatHours = ') try: float(FloatHours) except ValueError: print('Invalid number. Try again.') enterNumber() enterNumber() hours = int(float(FloatHours)) minutes = int(((float(FloatHours) * 60) % 60)) HoursAndMinutes = f'{hours} hours and {minutes} minutes.' print(HoursAndMinutes) end = input('End')