I'm having issues with a third level Toplevel in tkinter, that is to say having a toplevel popup from another Toplevel.
self.emailbttn= Button(self, text='Email', command=self.clientchooser) def clientchooser(self): showing.withdraw() client_choose() def client_choose(): global client client=Toplevel() client.title=('Choose Email') client.geometry=('800x600') Client(client) class Client(Frame): '''Choose Email Client''' def __init__(self,master): super(Client, self).__init__(master) self.grid() self.create_widget() def create_widget(self): self.notice=Label(self, text='Choose your Email Type') self.notice.grid(row=1,rowspan=2,column=3,columnspan=4) self.gmail=Button(self, text='GMAIL', command=self.gopen) self.gmail.grid(row=3,column=3,columnspan=3) def gopen(self): import webbrowser webbrowser.open('https://mail.google.com/mail/u/0/?hl=en&tab=wm#compose)
And yes I'm aware that Gmail is more properly webmail as opposed to a mail client. On a related note is there a way to have the To: field automatically filled upon opening a message composition page in gmail? I'm sure there's a much better way to do email than the way I'm doing it, but I suppose the real issue at hand for me is the fact that the third level toplevel is opening WAY too small and the title doesn't show.
Edited 5 Years Ago by pyguy62: n/a