mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 12:21:55 +00:00
__repr__ for windows and tabs
This commit is contained in:
parent
7bbf841725
commit
63359c358c
2 changed files with 6 additions and 0 deletions
|
|
@ -147,6 +147,9 @@ class Tab:
|
|||
def render(self):
|
||||
self.borders.render(get_boss().borders_program)
|
||||
|
||||
def __repr__(self):
|
||||
return 'Tab(title={}, id={})'.format(self.name or self.title, hex(id(self)))
|
||||
|
||||
|
||||
class TabManager:
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,9 @@ class Window:
|
|||
self.write_buf = memoryview(b'')
|
||||
self.char_grid = CharGrid(self.screen, opts)
|
||||
|
||||
def __repr__(self):
|
||||
return 'Window(title={}, id={})'.format(self.title, hex(id(self)))
|
||||
|
||||
@property
|
||||
def is_visible_in_layout(self):
|
||||
return self._is_visible_in_layout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue