Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import tkinter as tk
|
||||
|
||||
|
||||
class ControlsPanel:
|
||||
"""
|
||||
Панель управления действиями над пользователями.
|
||||
"""
|
||||
|
||||
def __init__(self, master, on_add, on_update, on_delete):
|
||||
self.frame = tk.Frame(master)
|
||||
tk.Button(self.frame, text="Добавить",
|
||||
command=on_add).pack(side=tk.LEFT, padx=5)
|
||||
tk.Button(self.frame, text="Изменить",
|
||||
command=on_update).pack(side=tk.LEFT, padx=5)
|
||||
tk.Button(self.frame, text="Удалить", command=on_delete).pack(
|
||||
side=tk.LEFT, padx=5)
|
||||
Reference in New Issue
Block a user