pack ( side = 'top', fill = 'both', ipadx = 10, ipady = 10 ) tools_btn = ttk. Button ( action_frame, image = 'registry', text = 'registry', compound = 'top', style = 'info.TButton' ) registry_btn. pack ( side = 'top', fill = 'both', ipadx = 10, ipady = 10 ) registry_btn = ttk. Button ( action_frame, image = 'cleaner', text = 'cleaner', compound = 'top', style = 'info.TButton' ) cleaner_btn. grid ( row = 1, column = 0, sticky = 'nsew' ) cleaner_btn = ttk. pack ( side = 'left', padx = 10 ) # action buttons action_frame = ttk. Label ( header_frame, text = 'pc cleaner', font = ( 'TkDefaultFixed', 30 ), style = 'header.TLabel' ) logo_text. Label ( header_frame, image = 'logo', style = 'header.TLabel' ). grid ( row = 0, column = 0, columnspan = 3, sticky = 'ew' ) ttk. Frame ( self, padding = 20, style = 'secondary.TFrame' ) header_frame. PhotoImage ( name = 'protect', file = p / 'assets/icons8_protect_40px.png' ) # header header_frame = ttk. PhotoImage ( name = 'junk', file = p / 'assets/icons8_trash_can_80px.png' ) self. PhotoImage ( name = 'privacy', file = p / 'assets/icons8_spy_80px.png' ) self. PhotoImage ( name = 'options', file = p / 'assets/icons8_settings_64px.png' ) self. PhotoImage ( name = 'tools', file = p / 'assets/icons8_wrench_64px.png' ) self. PhotoImage ( name = 'registry', file = p / 'assets/icons8_registry_editor_64px.png' ) self. PhotoImage ( name = 'cleaner', file = p / 'assets/icons8_broom_64px.png' ) self. PhotoImage ( name = 'logo', file = p / 'assets/icons8_broom_64px_1.png' ) self. _init_ ( * args, ** kwargs ) # application images p = Path ( _file_ ). Frame ): def _init_ ( self, * args, ** kwargs ): super (). resizable ( False, False ) class Cleaner ( ttk. info ) # do not allow window resizing self. configure ( 'header.TLabel', background = self. pack ( fill = 'both', expand = 'yes' ) # custom styles self. """ Author: Israel Dryer Modified: Adapted from: """ import tkinter from tkinter import ttk from pathlib import Path from ttkbootstrap import Style class Application ( tkinter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |