File: app_icon.py

package info (click to toggle)
python-guizero 1.4.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,828 kB
  • sloc: python: 6,744; makefile: 28; sh: 17
file content (16 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from guizero import App, Window, PushButton
from guizero.utilities import GUIZeroImage
from tkinter import PhotoImage


app = App(title="Main window")
app.icon = "guizero.gif"

window = Window(app, title="2nd window", visible=False)

open_window_button = PushButton(app, text="Open window", command=window.show)

close_window_button = PushButton(window, text="Close", command=window.hide)

app.display()