示例#1
0
 def apaga_servicio_http(self):
     self.boton_in_http.setVisible(True)
     self.boton_of_http.setVisible(False)
     print("Server turned off")
     try:
         HTTPServer.apaga_servidor()
     except:
         pass
 def apaga_servicio_http(self):
     self.panel_servicios.append("Servidor HTTP apagado")
     self.statusbar.showMessage("Servidor HTTP apagado")
     self.boton_in_http.setVisible(True)
     self.boton_off_http.setVisible(False)
     pixmap = QtGui.QPixmap('img/off.png')
     self.estado_http.setPixmap(pixmap)
     try:
         HTTPServer.apaga_servidor()
     except:
         pass