Am looking for best practises of displaying document info in tkinter messagebox
from tkinter import *
from tkinter import messagebox

def profile():
    messagebox.showinfo("info","college\tNew student\tGraduating students\noak institue\t202\t210\nPine college\t143\t121")

root =Tk()
root.geometry("200x200")

C = Button(text="copyright",command=profile).pack()

root.mainloop()
I think if am going to type all the info in the document the arrangement is going to get distort and not readable for the user .
I have attached a pdf file named "Display in messagebox tkinter"

Recommended Answers

To refresh our memory I read https://www.tutorialspoint.com/python/tk_messagebox.htm again and see this UI is for simple interaction with the user. If you were to try to place say a report in the message box …

Jump to Post

All 3 Replies

Have tried it but am not satifies with it , by the way thanks for your suggestion.

My thinking on this is this:

Message boxes are for simple interaction.
Dialog boxes are for more complex but simple interaction.
Anything more and it's a "form" or new screen where you have full control.

In other words, you scale up to what the solottion calls for.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.