Sui_Move_Domains/ui/main_window.py
2023-12-23 16:04:50 +03:00

28 lines
932 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import tkinter as tk
from ui.registration_form import RegistrationForm
from ui.resolution_tool import ResolutionTool
class MainWindow:
def __init__(self, root):
self.root = root
self.root.title("Sui Domains")
registration_button = tk.Button(root, text="Domain Kaydı", command=self.open_registration_form)
resolution_button = tk.Button(root, text="Domain Çözünürlüğü", command=self.open_resolution_tool)
registration_button.pack(pady=20)
resolution_button.pack(pady=20)
def open_registration_form(self):
registration_window = tk.Toplevel(self.root)
registration_form = RegistrationForm(registration_window)
def open_resolution_tool(self):
resolution_window = tk.Toplevel(self.root)
resolution_tool = ResolutionTool(resolution_window)
if __name__ == "__main__":
root = tk.Tk()
app = MainWindow(root)
root.mainloop()