Python Forum
Display value in the another entry field instead of message box
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display value in the another entry field instead of message box
#7
One observation I do have, with regard to your code so far:

input = Label(text = "Insert SECRET CODE HERE")
'input' is a keyword in Python. You've used it here as a Tkinter Label Object. Best not to do this, as it can lead to a misunderstanding. Instead, use something such as 'inputLabel' or 'input_Label' which is descriptive and as such, when you (or anyone else) is reading the code, it's very obvious that this is a 'Label' object (Widget) that is being used as a part of the user input section.

It's a small point in short code blocks, but as you progress and develop code that is maybe 100s of lines in length, it's best to develop a good coding style at the same time.

In fact, I'm going to edit my code (this end) to use 'hash_Select' and 'result_Text' etc, as that's more readable'
Sig:
>>> import this

The UNIX philosophy: "Do one thing, and do it well."

"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse

"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
Reply


Messages In This Thread
RE: Display value in the another entry field instead of message box - by rob101 - Jun-25-2022, 02:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to display <IPython.core.display.HTML object>? pythopen 3 46,062 May-06-2023, 08:14 AM
Last Post: pramod08728
  Auto increament in Entry field. in tkinter GUI cybertooth 7 4,193 Sep-17-2021, 07:56 AM
Last Post: cybertooth
  Display table field on multiple lines, 'wordwrap' 3python 0 1,788 Aug-06-2021, 08:17 PM
Last Post: 3python
Information Unable to display joystick's value from Python onto display box MelfoyGray 2 2,260 Nov-11-2020, 02:23 AM
Last Post: MelfoyGray
  Bug ? when dataclass field name == field type Cyril 0 1,572 Oct-22-2020, 03:26 AM
Last Post: Cyril

Forum Jump:

User Panel Messages

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