Destroying terminal in last paned of tab works... *dirty*...
This commit is contained in:
parent
26e793af10
commit
a6e94a9fc8
|
@ -12,9 +12,6 @@ from newterminator import Terminator
|
||||||
from terminal import Terminal
|
from terminal import Terminal
|
||||||
from container import Container
|
from container import Container
|
||||||
|
|
||||||
# forward declaration of class Notebook
|
|
||||||
class Notebook:
|
|
||||||
pass
|
|
||||||
# pylint: disable-msg=R0921
|
# pylint: disable-msg=R0921
|
||||||
# pylint: disable-msg=E1101
|
# pylint: disable-msg=E1101
|
||||||
class Paned(Container):
|
class Paned(Container):
|
||||||
|
@ -119,7 +116,7 @@ class Paned(Container):
|
||||||
self.remove(sibling)
|
self.remove(sibling)
|
||||||
|
|
||||||
parent = self.get_parent()
|
parent = self.get_parent()
|
||||||
if isinstance( parent, Notebook ):
|
if 'remove_page' in dir(parent):
|
||||||
page_num = parent.page_num( self )
|
page_num = parent.page_num( self )
|
||||||
parent.remove_page( page_num )
|
parent.remove_page( page_num )
|
||||||
parent.insert_page( sibling, None, page_num )
|
parent.insert_page( sibling, None, page_num )
|
||||||
|
|
Loading…
Reference in New Issue