-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
33 lines (22 loc) · 755 Bytes
/
Copy pathapp.py
File metadata and controls
33 lines (22 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import tkinter as tk
class button:
# Default design of button in CronTab
text = ""
background_color = "#FF0000"
foreground_color = "#FFFFFF"
def __init__(self, text, background_color, foreground_color):
self.text = text
self.background_color = background_color
self.foreground_color = foreground_color
def create_button(self, root, command):
btn = tk.Button(root, text=self.text, bd=self.background_color, fg=self.foreground_color, command=command)
return btn
class cronTabGUI:
# Default values for cron tab GUI
title = ""
size = "100*100"
def __init__(self, title, size):
self.title = title
self.size = size
def add_button(self):
pass