Example #1
0
File: gui.py Project: bytbox/yasmon
 def __init__(self,parent):
     super(AboutYasmon, 
           self).__init__(parent,
                          Qt.CustomizeWindowHint | # turn off defaults
                          Qt.WindowTitleHint | # obviously
                          Qt.WindowCloseButtonHint)
     self.setWindowTitle("About YASMon")
     overlayout=QVBoxLayout()
     layout=QHBoxLayout()
     layout.addWidget(yasmon_image())
     sublayout=QVBoxLayout()
     sublayout.addWidget(QLabel("<html><b>"+
                                "Yet Another System Monitor</b></html>"))
     sublayout.addWidget(QLabel("<html><p>Version %s</p>" % sysmon.version()
                                +"<p>&copy; 2010 Scott Lawrence "
                                +"&lt;<a href='mailto:[email protected]'>"
                                +"[email protected]</a>&gt;</p>"
                                +"<p>Licensed under the GNU GPL version 3 "
                                +"or, at your <br />choice, any later "
                                +"version.</p></html>"))
     layout.addLayout(sublayout)
     overlayout.addLayout(layout)
     bb=QDialogButtonBox(QDialogButtonBox.Ok,Qt.Horizontal,self)
     bb.setCenterButtons(True)
     bb.accepted.connect(self.accept)
     overlayout.addWidget(bb)
     self.setLayout(overlayout)
Example #2
0
        sysmon.tests.run_tests()


def read(*rnames):
    return codecs.open(os.path.join(*rnames), encoding='utf-8').read()

#generate icon installation list (hicolor)
iconlist = []
for x in [16, 22, 24, 32, 36, 48, 64, 72, 96, 128, 192, 256]:
    dest = "/usr/share/icons/hicolor/%dx%d/apps" % (x, x)
    src = "gr/%dx%d/yasmon.png" % (x, x)
    iconlist = iconlist + [(dest, [src])]

setup(cmdclass = {'build': build, 'test': test},
      name = 'YASMon',
      version = sysmon.version(),
      description = 'Yet Another System Monitor',
      long_description = read('README.rst'),
      author = 'Scott Lawrence',
      author_email = '*****@*****.**',
      maintainer = 'Scott Lawrence',
      maintainer_email = '*****@*****.**',
      url = 'http://github.com/bytbox/yasmon',
      keywords = 'System Monitor',
      license = 'GNU General Public License v3 or later',
      requires = ['PyQt4'],
      packages = ['sysmon', 'sysmon.tests'],
      scripts = ['yasmon', 'yasmond'],
      data_files = [('/etc/init.d', ['etc/init.d/yasmond']),
                  ('/usr/share/man/man1',
                   ['doc/yasmon.1', 'doc/yasmond.1']),