1
+ import tkinter as tk
2
+ from tkinter import ttk
3
+
4
+ root = tk .Tk ()
5
+ root .title ("Sign Up Page" )
6
+ root .iconbitmap ('icon.ico' )
7
+ root .option_add ("*tearOff" , False ) # This is always a good idea
8
+ root .geometry ("1000x600" )
9
+ root .columnconfigure (index = 0 , weight = 1 )
10
+ root .columnconfigure (index = 1 , weight = 1 )
11
+ root .columnconfigure (index = 2 , weight = 1 )
12
+ root .rowconfigure (index = 0 , weight = 1 )
13
+ root .rowconfigure (index = 1 , weight = 1 )
14
+ root .rowconfigure (index = 2 , weight = 1 )
15
+ root .resizable (False ,False )
16
+ sizegrip = ttk .Sizegrip (root )
17
+ sizegrip .grid (row = 100 , column = 100 , padx = (0 , 5 ), pady = (0 , 5 ))# Create a style
18
+ style = ttk .Style (root )
19
+ widgets_frame = ttk .Frame (root , padding = (40 ,0 , 0 , 10 ))
20
+ widgets_frame .grid (row = 0 , column = 1 , padx = 0 , pady = (50 ,10 ), sticky = "nsew" , rowspan = 3 )
21
+ widgets_frame .columnconfigure (index = 0 , weight = 1 )
22
+ # Import the tcl file
23
+ root .tk .call ("source" , "proxttk-dark.tcl" )
24
+
25
+ # Set the theme with the theme_use method
26
+ style .theme_use ("proxttk-dark" )
27
+
28
+ d = tk .IntVar (value = 2 )
29
+ # Label
30
+ text1 = ttk .Label (widgets_frame , text = "SIGN UP" ,font = "colortube 20" ,foreground = "white" )
31
+ text1 .grid (row = 0 , column = 0 , pady = 50 , columnspan = 2 )
32
+
33
+
34
+
35
+
36
+ d = tk .IntVar (value = 2 )
37
+
38
+ # Entry
39
+ box = ttk .Entry (widgets_frame )
40
+ box .insert (0 , "" )
41
+ box .grid (row = 2 , column = 0 , padx = 200 , pady = 0 , sticky = "ew" )
42
+
43
+
44
+
45
+
46
+
47
+ # Entry
48
+ box2 = ttk .Entry (widgets_frame )
49
+ box2 .insert (0 , "Enter e-mail here..." )
50
+ box2 .grid (row = 8 , column = 0 , padx = 200 , pady = 50 , sticky = "ew" )
51
+
52
+ # Entry
53
+ box = ttk .Entry (widgets_frame )
54
+ box .insert (0 , "Enter name here..." )
55
+ box .grid (row = 2 , column = 0 , padx = 200 , pady = 0 , sticky = "ew" )
56
+ a = box .get ()
57
+ b = box2 .get ()
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+ accentbutton = ttk .Button (widgets_frame , text = "SIGN UP" , style = "AccentButton" )
67
+ accentbutton .grid (row = 10 , column = 0 , padx = 300 , pady = 10 , sticky = "nsew" )
68
+ root .mainloop ()
0 commit comments