<s> import sys <EOL> from PySide . QtGui import * <EOL> from MComponents . MRadioButton import MRadioButton <EOL> from MUtilities import MColors <EOL> __author__ = '<STR_LIT>' <EOL> class MainWindow ( QWidget ) : <EOL> def __init__ ( self ) : <EOL> QWidget . __init__ ( self ) <EOL> self . setWindowTitle ( "<STR_LIT>" ) <EOL> self . setGeometry ( <NUM_LIT:100> , <NUM_LIT:100> , <NUM_LIT> , <NUM_LIT:200> ) <EOL> p = self . palette ( ) <EOL> p . setColor ( self . backgroundRole ( ) , MColors . BACKGROUND_DARK ) <EOL> self . setPalette ( p ) <EOL> def addComponents ( self ) : <EOL> layout = QGridLayout ( ) <EOL> radio1 = MRadioButton ( ) <EOL> radio2 = MRadioButton ( ) <EOL> radio3 = MRadioButton ( ) <EOL> radio4 = MRadioButton ( ) <EOL> layout . addWidget ( radio1 ) <EOL> layout . addWidget ( radio2 ) <EOL> layout . addWidget ( radio3 ) <EOL> layout . addWidget ( radio4 ) <EOL> self . setLayout ( layout ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> app = QApplication ( sys . argv ) <EOL> win = MainWindow ( ) <EOL> win . show ( ) <EOL> win . addComponents ( ) <EOL> app . exec_ ( ) <EOL> sys . exit ( ) </s>
