Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ The Migration Planner is a desktop application designed to help deployment partn

### 1. Python Version

Please ensure you have **Python 3.10** or newer installed on your system.
Please ensure you have a stable version of **Python 3.10** or newer installed on your system (avoid beta or release candidate versions).

### 2. Installation Steps

Expand Down
3 changes: 2 additions & 1 deletion migration_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@
import sys
import customtkinter as ctk
from util.constants import *
import ui.utils as ui_utils

class SelectorApp(ctk.CTk):
"""Main application for workload selection."""

def __init__(self):
super().__init__()
self.title("Migration Planner Selector")
self.geometry("400x250")
ui_utils.center_window(self, 400, 250)
self.configure(fg_color=COLOR_BACKGROUND)

ctk.CTkLabel(
Expand Down
6 changes: 4 additions & 2 deletions ui/chats_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from util.monitoring import ResourceMonitor
from util.utils import ScanConfig
from util.constants import *
import ui.utils as ui_utils

class ChatMigrationEstimatorTool(ctk.CTk):
"""Main Application Class for Migration Planner."""
Expand All @@ -38,8 +39,8 @@ def __init__(self):
ctk.set_default_color_theme("blue")

self.configure(fg_color=COLOR_BACKGROUND)
self.title("Migration Planner")
self.geometry("950x900")
self.title("Migration Planner - Chats")
ui_utils.center_window(self, 950, 900)

self.log_queue = queue.Queue()
self.log_buffer = []
Expand Down Expand Up @@ -1252,6 +1253,7 @@ def create_resource_card(
font=FONT_BODY_BOLD,
text_color=COLOR_PRIMARY,
anchor="w",
cursor="hand2",
)
link.pack(fill="x")
link.bind("<Button-1>", lambda e: webbrowser.open(link_url))
Expand Down
6 changes: 4 additions & 2 deletions ui/exchange_online_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import os
import subprocess
import sys
import webbrowser

from util.connectors import TokenManager, UrlInvoker
from util.monitoring import ResourceMonitor
Expand All @@ -34,8 +35,8 @@ def __init__(self):
ctk.set_default_color_theme("blue")

self.configure(fg_color=COLOR_BACKGROUND)
self.title("Migration Planner")
self.geometry("950x900")
self.title("Migration Planner - Exchange Online")
ui_utils.center_window(self, 950, 900)

self.log_queue = queue.Queue()
self.log_buffer = []
Expand Down Expand Up @@ -1015,6 +1016,7 @@ def create_resource_card(
font=FONT_BODY_BOLD,
text_color=COLOR_PRIMARY,
anchor="w",
cursor="hand2",
)
link.pack(fill="x")
link.bind("<Button-1>", lambda e: webbrowser.open(link_url))
Expand Down
1 change: 1 addition & 0 deletions ui/files_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def __init__(self):
self.show_eta = False

super().__init__()
self.title("Migration Planner - Files")
self.factory = None

def setup_variables(self):
Expand Down
9 changes: 8 additions & 1 deletion ui/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,11 @@ def build_large_resource_limit_input(self, ctk, min_val=2, max_val=10, increment
text="* Flag resources (like folders, subsites) with item counts greater than this limit.",
font=FONT_BODY_SMALL,
text_color=COLOR_TEXT_SUB,
).pack(anchor="w", padx=20, pady=(0, 15))
).pack(anchor="w", padx=20, pady=(0, 15))

def center_window(window, width, height):
screen_width = window.winfo_screenwidth()
screen_height = window.winfo_screenheight()
x = int((screen_width / 2) - (width / 2))
y = int((screen_height / 2) - (height / 2))
window.geometry(f"{width}x{height}+{x}+{y}")