tidy up some pylint issues

This commit is contained in:
Chris Jones 2009-11-14 17:30:03 +00:00
parent 095ba4dbe3
commit e5301362e4
4 changed files with 6 additions and 6 deletions

View File

@ -61,10 +61,6 @@ class Container(object):
"""Default axis splitter. This should be implemented by subclasses""" """Default axis splitter. This should be implemented by subclasses"""
raise NotImplementedError('split_axis') raise NotImplementedError('split_axis')
def unsplit(self, widget, keep=False):
"""Default unsplitter. This should be implemented by subclasses"""
raise NotImplementedError('unsplit')
def add(self, widget): def add(self, widget):
"""Add a widget to the container""" """Add a widget to the container"""
raise NotImplementedError('add') raise NotImplementedError('add')

View File

@ -12,6 +12,7 @@ from terminal import Terminal
from container import Container from container import Container
# pylint: disable-msg=R0921 # pylint: disable-msg=R0921
# pylint: disable-msg=E1101
class Paned(Container): class Paned(Container):
"""Base class for Paned Containers""" """Base class for Paned Containers"""
cnxids = None cnxids = None
@ -29,6 +30,7 @@ class Paned(Container):
gobject.type_register(HPaned) gobject.type_register(HPaned)
self.register_signals(HPaned) self.register_signals(HPaned)
# pylint: disable-msg=W0613
def set_initial_position(self, widget, event): def set_initial_position(self, widget, event):
"""Set the initial position of the widget""" """Set the initial position of the widget"""
if isinstance(self, gtk.VPaned): if isinstance(self, gtk.VPaned):
@ -41,6 +43,7 @@ class Paned(Container):
self.disconnect(self.cnxids['init']) self.disconnect(self.cnxids['init'])
del(self.cnxids['init']) del(self.cnxids['init'])
# pylint: disable-msg=W0613
def split_axis(self, widget, vertical=True): def split_axis(self, widget, vertical=True):
"""Default axis splitter. This should be implemented by subclasses""" """Default axis splitter. This should be implemented by subclasses"""
self.remove(widget) self.remove(widget)

View File

@ -47,7 +47,8 @@ class Terminal(gtk.VBox):
'tab-new': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), 'tab-new': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),
'tab-top-new': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), 'tab-top-new': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),
'focus-in': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), 'focus-in': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),
'zoom': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), 'zoom': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
(gobject.TYPE_BOOL,)),
'maximise': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), 'maximise': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),
'resize-term': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, 'resize-term': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE,
(gobject.TYPE_STRING,)), (gobject.TYPE_STRING,)),

View File

@ -13,7 +13,7 @@ from version import APP_NAME
from container import Container from container import Container
from newterminator import Terminator from newterminator import Terminator
from terminal import Terminal from terminal import Terminal
from paned import HPaned,VPaned from paned import HPaned, VPaned
try: try:
import deskbar.core.keybinder as bindkey import deskbar.core.keybinder as bindkey