style sugar

master
itdominator 3 years ago
parent 4172713b36
commit eec1eb4822

@ -28,7 +28,8 @@ class Window:
def generate_id(self):
self.id = str(self.random_with_N_digits(self.id_length))
def get_window_id(self):
return self.id
def create_view(self):
view = View()

@ -106,13 +106,15 @@ class WindowController:
window.nickname = nickname
def list_windows(self):
print("\n[ ---- Windows ---- ]\n")
for window in self.windows:
print("\n\n[ Window ]")
print(f"ID: {window.id}")
print(f"\nID: {window.id}")
print(f"Name: {window.name}")
print(f"Nickname: {window.nickname}")
print(f"View Count: {window.get_views_count()}")
print("\n-------------------------\n")
def list_files_from_views_of_window(self, win_id):

@ -41,6 +41,8 @@ class View(Settings, Launcher, Icon, Path):
def generate_id(self):
self.id = str(self.random_with_N_digits(self.id_length))
def get_tab_id(self):
return self.id
def load_directory(self):
path = self.get_path()

Loading…
Cancel
Save