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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.