X-Git-Url: https://git.ralfj.de/lilass.git/blobdiff_plain/93e1258e8c9afca0e3cba00d765d6de0afa1bc3e..03573e36b3921cdf01c762099ede7a0a9884cd92:/selector_window.py diff --git a/selector_window.py b/selector_window.py index adee7e4..556158c 100644 --- a/selector_window.py +++ b/selector_window.py @@ -1,4 +1,19 @@ -#!/usr/bin/python +# DSL - easy Display Setup for Laptops +# Copyright (C) 2012 Ralf Jung +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program (gpl.txt); if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. from PyQt4 import QtCore, QtGui def makeLayout(layout, members): @@ -14,10 +29,10 @@ class PositionSelection(QtGui.QDialog): RIGHT = 20 EXTERNAL_ONLY = 30 - def __init__(self, internalResolutions, externalResolutions): + def __init__(self, externalName, internalResolutions, externalResolutions): # set up main window super(PositionSelection, self).__init__() - self.setWindowTitle('External screen setup') + self.setWindowTitle('External screen setup (connector: %s)' % externalName) # position selection posBox = QtGui.QGroupBox('Position of external screen', self)