質問編集履歴
1
add code
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,3 +7,53 @@
|
|
7
7
|
Python初心者でわからないことが多いのですが、ご教示いただけないでしょうか。
|
8
8
|
|
9
9
|
macを使用してこのエラーがvsCodeのターミナルで出ています。
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
```import tkinter as tk
|
16
|
+
|
17
|
+
TK_SILENCE_DEPRECATION=1
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
# Create the window
|
22
|
+
|
23
|
+
mainWindow = tk.Tk()
|
24
|
+
|
25
|
+
mainWindow.title("Task Timer")
|
26
|
+
|
27
|
+
mainWindow.resizable(0,0)
|
28
|
+
|
29
|
+
# mainWindow.iconphoto(False,tk.PhotoImage(file='icon.png'))
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
# The section on the left side of the window that holds the Add, Edit & Settings buttons.
|
38
|
+
|
39
|
+
configFrame = tk.Frame(master=mainWindow, width=200,height=500, bg="green") # Remove colour later
|
40
|
+
|
41
|
+
configFrame.pack(fill=tk.Y,side=tk.LEFT)
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
# The main section that holds the clock, tasks and start/stop button
|
48
|
+
|
49
|
+
mainFrame = tk.Frame(master=mainWindow, width=400, height=500, bg="red") # Remove colour later
|
50
|
+
|
51
|
+
mainFrame.pack(fill=tk.Y,side=tk.RIGHT)
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
# Run the program
|
56
|
+
|
57
|
+
mainWindow.mainloop()
|
58
|
+
|
59
|
+
```
|