@@ -37,9 +37,9 @@ def show_transparent_countdown_frame(self):
3737 self .show_frame (TransparentCountdownFrame )
3838 self .set_partial_screen_transparent ()
3939
40- def get_current_window_geometry (self , pad ):
40+ def get_current_window_geometry (self ):
4141 return "{0}x{1}+0+0" .format (
42- self .winfo_screenwidth () - pad , self .winfo_screenheight () - pad )
42+ self .winfo_screenwidth (), self .winfo_screenheight ())
4343
4444 def disable_resizing (self ):
4545 self .resizable (0 , 0 )
@@ -52,17 +52,28 @@ def set_always_on_top(self):
5252
5353 def set_full_screen_always_on_top (self ):
5454 controller = self
55- controller .geometry (self .get_current_window_geometry (0 ))
56- # controller.bind('<Escape>', self.toggle_geometry)
55+ controller .geometry (self .get_current_window_geometry ())
5756 self .set_always_on_top ()
5857 self .remove_title_bar ()
5958 self .disable_resizing ()
59+ top_left_screen = "+0+0"
60+ controller .geometry (top_left_screen )
61+ controller .attributes ("-alpha" , 1 )
6062
6163 def set_partial_screen_transparent (self ):
62- geometry = '200x200+0+0'
64+ screenwidth = self .winfo_screenwidth ()
65+ screenheight = self .winfo_screenheight ()
66+
6367 controller = self
64- controller .geometry (geometry )
65- # controller.bind('<Escape>', self.toggle_geometry)
68+
6669 self .set_always_on_top ()
6770 self .remove_title_bar ()
68- self .disable_resizing ()
71+ self .disable_resizing ()
72+
73+ window_width = int (screenwidth * 0.3 )
74+ window_height = int (screenheight * 0.3 )
75+ window_size = "{0}x{1}+0+0" .format (window_width , window_height )
76+ bottom_left_screen = "+0+{}" .format (screenheight - window_height )
77+ controller .geometry (window_size )
78+ controller .geometry (bottom_left_screen )
79+ controller .attributes ("-alpha" , 0.3 )
0 commit comments