style sugar

This commit is contained in:
itdominator 2021-04-27 23:30:58 -05:00
parent 4172713b36
commit eec1eb4822
3 changed files with 8 additions and 3 deletions

View File

@ -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()

View File

@ -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):

View File

@ -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()