def startShut(self):
     #print 'Combo: ' + str(self.comboBox.currentText())
     flag= '-P' 
      
     #print 'Shutdown'    
     myShutdown= Shutdown()
     myShutdown.startShutdown(flag, str(self.spinBox.text()))
     self.pbShutdown.setDisabled(1)
     self.pbStop.setEnabled(1)
     
     print 'Ausgefuehrt'
Exemple #2
0
def main():
    myShutdown= Shutdown()
    #myShutdown.startShutdown('-P', '45', 'password')
    pass
    pass
    myShutdown.stopShutdown("Shutdown aufgehoben", 'password')
 def stopShut(self):
     myShutdown= Shutdown()
     myShutdown.stopShutdown('Shutdown deaktiviert')
     self.pbShutdown.setEnabled(1)
     self.pbStop.setDisabled(1)
     print 'Stop ausgefuehrt'