Commit 7a7a50e0 authored by Actionless Loveless's avatar Actionless Loveless Committed by chrysn

style(xrandr, widget): more pylint

parent fdefc929
......@@ -16,7 +16,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
# pylint: disable=wrong-import-position,missing-docstring,attribute-defined-outside-init,fixme
# pylint: disable=wrong-import-position,missing-docstring,fixme
from __future__ import division
import os
......@@ -35,6 +35,12 @@ from .i18n import _
class ARandRWidget(Gtk.DrawingArea):
sequence = None
_lastclick = None
_draggingoutput = None
_draggingfrom = None
_draggingsnap = None
__gsignals__ = {
# 'expose-event':'override', # FIXME: still needed?
'changed': (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, ()),
......
......@@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Wrapper around command line xrandr (mostly 1.2 per output features supported)"""
# pylint: disable=too-few-public-methods,wrong-import-position,missing-docstring
# pylint: disable=too-few-public-methods,wrong-import-position,missing-docstring,fixme
import os
import subprocess
......@@ -37,6 +37,9 @@ class Feature:
class XRandR:
DEFAULTTEMPLATE = [SHELLSHEBANG, '%(xrandr)s']
configuration = None
state = None
def __init__(self, display=None, force_version=False):
"""Create proxy object and check for xrandr at `display`. Fail with
untested versions unless `force_version` is True."""
......@@ -328,6 +331,8 @@ class XRandR:
class State:
"""Represents everything that can not be set by xrandr."""
virtual = None
def __init__(self):
self.outputs = {}
......@@ -343,6 +348,9 @@ class XRandR:
self.max = max_mode
class Output:
rotations = None
connected = None
def __init__(self, name):
self.name = name
self.modes = []
......@@ -356,6 +364,8 @@ class XRandR:
(and is therefore subject to saving and loading from files)
"""
virtual = None
def __init__(self, xrandr):
self.outputs = {}
self._xrandr = xrandr
......@@ -386,6 +396,7 @@ class XRandR:
return args
class OutputConfiguration:
def __init__(self, active, primary, geometry, rotation, modename):
self.active = active
self.primary = primary
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment