Skip to content

Commit fa78ecb

Browse files
committed
More Tips
1 parent ef2ce73 commit fa78ecb

File tree

6 files changed

+29
-13
lines changed

6 files changed

+29
-13
lines changed

Frames/MinimalScreenBlockerFrame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def build_window_content(self):
5555
start_button.bind("<Button-1>", lambda event: self.controller.show_screen_blocker_frame())
5656
row_index += 1
5757

58-
start_button = ttk.Button(center_frame, text="Quit Mobbing!")
58+
start_button = ttk.Button(center_frame, text="Quit Mobbing")
5959
start_button.grid(row=row_index, column=2, columnspan=3, sticky=N + E + W, padx=200, pady=10)
6060
start_button.bind("<Button-1>", lambda event: self.controller.quit_and_destroy_session())
6161
row_index += 1

Frames/MobTimerController.py

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
class MobTimerController(Tk):
2121
def __init__(self, *args, **kwargs):
2222
Tk.__init__(self, *args, **kwargs)
23+
self.transparent_frame_monitor_index = 0
24+
self.transparent_frame_position_index = 0
2325
self.settings_manager = SettingsManager()
2426
self.tips_manager = TipsManager()
2527
self.time_options_manager = TimeOptionsManager()
@@ -181,10 +183,15 @@ def set_partial_screen_transparent(self):
181183

182184
def toggle_transparent_frame_position(self, e=None):
183185
if self.state() == "withdrawn":
184-
print("withdrawn")
185186
return
186-
screenwidth = self.winfo_screenwidth()
187-
screenheight = self.winfo_screenheight()
187+
188+
189+
190+
monitors = get_monitors()
191+
monitor = monitors[self.transparent_frame_monitor_index]
192+
193+
screenwidth = monitor.width
194+
screenheight = monitor.height
188195

189196
self.set_always_on_top()
190197
self.remove_title_bar()
@@ -194,12 +201,13 @@ def toggle_transparent_frame_position(self, e=None):
194201

195202
window_width = int(screenwidth * size_percentage)
196203
window_height = int(screenheight * size_percentage)
197-
198-
if self.transparent_frame_position == 0:
199-
self.transparent_frame_position = screenwidth - window_width
204+
if self.transparent_frame_position_index == 0:
205+
self.transparent_frame_position = monitor.x + screenwidth - window_width
206+
self.transparent_frame_monitor_index = (self.transparent_frame_monitor_index + 1) % (monitors.__len__())
200207
else:
201-
self.transparent_frame_position = 0
208+
self.transparent_frame_position = monitor.x + 0
209+
self.transparent_frame_position_index = (self.transparent_frame_position_index + 1) % 2
202210

203-
bottom_left_screen = "+{}+{}".format(self.transparent_frame_position, screenheight - window_height)
204-
for controller in self.containers:
205-
controller.geometry(bottom_left_screen)
211+
bottom_left_screen = "{}x{}+{}+{}".format(window_width,window_height,self.transparent_frame_position, monitor.y +
212+
screenheight - window_height)
213+
self.geometry(bottom_left_screen)

Frames/ScreenBlockerFrame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def build_window_content(self):
129129
start_button.bind("<Button-1>", lambda event: self.controller.show_transparent_countdown_frame())
130130
row_index += 1
131131

132-
start_button = ttk.Button(center_frame, text="Quit Mobbing!")
132+
start_button = ttk.Button(center_frame, text="Quit Mobbing")
133133
start_button.grid(row=row_index, column=1, columnspan=3, sticky=N + E + W, padx=50, pady=10)
134134
start_button.bind("<Button-1>", lambda event: self.controller.quit_and_destroy_session())
135135
row_index += 1

Infrastructure/Sessions/28f3a638-b379-11e5-9246-20c9d042e8c0

Whitespace-only changes.

Tips/MobProgramming

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Team members looking at phones too much? Try reducing the timer duration.
2+
One team member navigating too much? Try navigating a new navigator who navigates the driver.
3+
Need to normalize the skill level of the team? Try doing TDD Katas together.
4+
Arguing about solutions? Try going with the least experienced navigator and have the more experienced team members course correct only as needed.
5+
Taking too much time on complex solutions? Try starting with the simplest thing that can work.
6+
Feeling like your skills are exposed to the team? Ask for help on improving them. Make it a safe environment for continuous improvement.
7+
Working together is fun and effective!

Tips/Retrospectives

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ Have you done a retrospective lately?
22
Lean Coffee is a structured, but agenda-less meeting. Participants gather, build an agenda, and begin talking. Conversations are directed and productive because the agenda for the meeting was democratically generated.
33
Feel like the team needs to change its ways? Try a Retrospective!
44
Feel like things are going well? Try a Retrospective!
5-
Let's inspect and adapt!
5+
Let's inspect and adapt!
6+
Seeing problems? Let's retrospect!

0 commit comments

Comments
 (0)