Python Forum
how to add two numbers and pass the result to the next page in tkinter?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to add two numbers and pass the result to the next page in tkinter?
#7
(Feb-14-2022, 08:17 PM)deanhystad Wrote: It is not good user interface design to have controls in one "page" change displays in a second "page". It is not an absolute, but should give you pause. If you don't immediately see the results of your actions, how do you know that you performed the action correctly? For your example I would put a button in frame 2 that draws a dialog to enter values for first_no and second_no which are applied when you press the "Ok" button in the dialog, or ignored if you press the "Cancel" button.

I cannot tell you what is a good design for your application (I don't know what you are trying to achieve), but I can say you should be spending most of your programming time thinking about the user experience and relatively little time writing code.

You are right. I am a little new to tkinter. with this code for summation and the one I just said to open a textfile, I am trying to learn.
I want to make an app to get variables (from entry boxes, or from importing a file), and pass these variables through pages. This was an easy example I just created to learn the basics and then move to the harder cases.
Thank you
Reply


Messages In This Thread
RE: how to add two numbers and pass the result to the next page in tkinter? - by pymn - Feb-14-2022, 08:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pass a variable between tkinter and toplevel windows janeik 10 3,090 Jan-24-2024, 06:44 AM
Last Post: Liliana
  [Tkinter] How to get the result of a ping to show in tkinter? jacklee26 6 8,143 Feb-10-2023, 01:12 PM
Last Post: NebularNerd
  [Tkinter] tkinter best way to pass parameters to a function Pedroski55 3 5,255 Nov-17-2021, 03:21 AM
Last Post: deanhystad
Thumbs Up tkinter canvas; different page sizes on different platforms? philipbergwerf 4 4,441 Mar-27-2021, 05:04 AM
Last Post: deanhystad
Star [Tkinter] How to perform math function in different page of Tkinter GUI ravaru 2 4,784 Oct-23-2020, 05:46 PM
Last Post: deanhystad
  [Tkinter] tkinter How to pass label fiilename to another module? johnjh 0 2,094 Apr-17-2020, 11:34 PM
Last Post: johnjh
  Tkinter: increasing numbers and Radiobutton issue PeroPuri 1 2,281 Apr-13-2020, 05:48 PM
Last Post: deanhystad
  Want to dynamically update numbers using tkinter in pygame script k0gane 0 2,151 Feb-09-2020, 09:01 AM
Last Post: k0gane
  [Tkinter] Result not change using Tkinter cmala 2 2,869 May-17-2019, 08:12 AM
Last Post: cmala

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020