j_mie6
Deity
works with multiple lines... I added a scroll bar option to it for the list (which will be 133 lines long in the end)
one problem though, the font=font10 isn't working...
any ideas? works for the main program window...
Code:
def Popup(name, text, button, bScroll = False, iWidth = 50):
def exit():
popup.destroy()
popup = Tk()
popup.title(name)
font10 = tkFont.Font(family="Comic Sans MS", size=10)
if bScroll:
scroll = Scrollbar(popup)
text2 = Text(popup, yscrollcommand=scroll.set, width=iWidth, font=font10, bg="light yellow")
scroll.pack(side=RIGHT, fill=Y)
for x in text: text2.insert(END, x + "\n")
text2.pack(side=LEFT, fill=BOTH)
scroll.config(command=text2.yview)
if not bScroll:
body = Label(popup, text=text, font=font10, bg="light yellow")
body.pack(side=TOP, fill=X)
btn = Button(popup, text=button, command=exit)
btn.pack(side=BOTTOM, fill=X)
one problem though, the font=font10 isn't working...
any ideas? works for the main program window...