Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- 2.3 A small lexicon of widgets - Part 3
- ain menu item: an empty (as far) submenu sub_menu_file = tk.Menu(main_menu) main_menu.add_cascade(label="File", menu=sub_menu_file) # 2nd main menu item: a simple callback sub_menu_help = tk.Menu(main_menu) main_... at strange dashed line visible when you click the File main menu item? Don’t worry, this it’s normal. W
- 2.4 Shaping the main window and conversing with the user
- .tk.call('wm', 'iconphoto', window._w, PhotoImage(file='logo.png')) window.bind("<Button-1>", lamb... PhotoImage'' class constructor to convert the PNG file into an internal ''tkinter'' representation (''Ph... .tk.call('wm', 'iconphoto', window._w, PhotoImage(file='logo.png')) window.bind("<Button-1>;", lambda e:... ter as tk window = tk.Tk() photo = tk.PhotoImage(file = 'logo.png') window.wm_iconphoto(False, photo) w
- 2.5 Working with the Canvas
- 0, height=400, bg='yellow') image = tk.PhotoImage(file='logo.png') canvas.create_image(200, 200, image=i... ts ''open()'' method to fetch the bitmap from the file (the argument should specify the file’s path) * convert this object into a ''PhotoImage'' class objec