<s> from director import atlasdriver <EOL> from director import consoleapp <EOL> from PythonQt import QtCore , QtGui <EOL> from collections import namedtuple <EOL> atlasDriver = atlasdriver . init ( ) <EOL> w = QtGui . QWidget ( ) <EOL> l = QtGui . QVBoxLayout ( w ) <EOL> Button = namedtuple ( '<STR_LIT>' , [ '<STR_LIT:name>' , '<STR_LIT>' , '<STR_LIT>' ] ) ; <EOL> buttons = [ <EOL> Button ( '<STR_LIT>' , atlasDriver . sendRecoveryTriggerOn , None ) <EOL> ] <EOL> for button in buttons : <EOL> qb = QtGui . QPushButton ( button . name ) <EOL> qb . connect ( '<STR_LIT>' , button . callback ) <EOL> qb . setSizePolicy ( QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Expanding ) <EOL> s = qb . styleSheet <EOL> s += "<STR_LIT>" <EOL> if button . color : <EOL> s += "<STR_LIT>" . format ( button . color ) <EOL> qb . setStyleSheet ( s ) <EOL> l . addWidget ( qb ) <EOL> w . setWindowTitle ( '<STR_LIT>' ) <EOL> w . show ( ) <EOL> w . resize ( <NUM_LIT> , <NUM_LIT> ) <EOL> consoleapp . ConsoleApp . start ( ) </s>
