def test_image_types(self): self.assertRaises(RuntimeError, tkinter.image_types) root = tkinter.Tk() image_types = tkinter.image_types() self.assertIsInstance(image_types, tuple) self.assertIn('photo', image_types) self.assertIn('bitmap', image_types) root.destroy() tkinter.NoDefaultRoot() self.assertRaises(RuntimeError, tkinter.image_types)
submit = tkinter.Button(frame2, text='SIGNUP', bg='teal', command=tk.destroy) submit.grid(padx=5, pady=3, column=1, row=18) label9 = tkinter.Label(frame2, text='Male ') label9.grid(column=1, row=14) male = tkinter.Radiobutton(frame2, value=1) male.grid(column=2, row=14) label10 = tkinter.Label(frame2, text='Female ') label10.grid(column=1, row=16) female = tkinter.Radiobutton(frame2, value=2) female.grid(column=2, row=16) label7 = tkinter.Label(frame, text='Username: '******'Password: '******'LOGIN', bg='teal', command=tk.destroy) login.pack() #grid(column=4,row=3) tkinter.image_types() tkinter.Image(frame, imgtype=JPG, name='sam.jpg') tk.mainloop()