Commit 38374f23 by Juan

guardo copia de uso personal

1 parent f1be0640
...@@ -36,6 +36,7 @@ def iniciar(self, parent, MainWindow): ...@@ -36,6 +36,7 @@ def iniciar(self, parent, MainWindow):
self.menu = QMenu() self.menu = QMenu()
self.menu.aboutToShow.connect(action) self.menu.aboutToShow.connect(action)
self.icon.setContextMenu(self.menu) self.icon.setContextMenu(self.menu)
self.icon.activated.connect(action)
def CambioIcono(self, icono, parent): def CambioIcono(self, icono, parent):
self.icon.setIcon(QIcon(icono)) self.icon.setIcon(QIcon(icono))
......
HGT = {"nombre": "HGT", "CARPETA": "/home/juan/.hgt", "SSHprox":"3456", HGT = {"nombre": "HGT", "CARPETA": "/home/juan/.hgt", "SSHprox":"3456",
"HOME": "https://play.google.com/apps/publish/", "SSHport":"4200", "SSHdom":"s2.hgtec.com.ar", "HOME": "https://play.google.com/apps/publish/", "SSHport":"22", "SSHdom":"s2.hgtec.com.ar",
"SSHuser":"juan", "SSHpass":"xvc7733455"} "SSHuser":"juan", "SSHpass":"xvc7733455"}
Remoto = {"nombre": "Remoto", "CARPETA": "/home/juan/.cromes/remoto", "SSHprox":"3457", Remoto = {"nombre": "Remoto", "CARPETA": "/home/juan/.cromes/remoto", "SSHprox":"3455",
"HOME": "https://nextcloud.anacsoft.com", "SSHport":"4200", "SSHdom":"s2.hgtec.com.ar", "HOME": "https://nextcloud.anacsoft.com", "SSHport":"22", "SSHdom":"s2.hgtec.com.ar",
"SSHuser":"juan", "SSHpass":"xvc7733455"} "SSHuser":"juan", "SSHpass":"xvc7733455"}
cciv = {"nombre": "cciv", "CARPETA": "/home/juan/.cromes/cciv", "SSHprox":"3457", cciv = {"nombre": "cciv", "CARPETA": "/home/juan/.cromes/cciv", "SSHprox":"3454",
"HOME": "http://192.168.0.111", "SSHport":"4200", "SSHdom":"s2.hgtec.com.ar", "HOME": "http://192.168.0.111", "SSHport":"", "SSHdom":"s2.hgtec.com.ar",
"SSHuser":"juan", "SSHpass":"xvc7733455"} "SSHuser":"administrador", "SSHpass":"xvc7733455"}
isva = {"nombre": "isva", "CARPETA": "/home/juan/.cromes/isva", "SSHprox":"3457", isva = {"nombre": "isva", "CARPETA": "/home/juan/.cromes/isva", "SSHprox":"3453",
"HOME": "http://10.0.0.104", "SSHport":"4200", "SSHdom":"s2.hgtec.com.ar", "HOME": "http://10.0.0.104", "SSHport":"22", "SSHdom":"190.220.138.11",
"SSHuser":"juan", "SSHpass":"xvc7733455"} "SSHuser":"administrador", "SSHpass":"vivaperon"}
atlas = {"nombre": "atlas", "CARPETA": "/home/juan/.cromes/atlas", "SSHprox":"3457", atlas = {"nombre": "atlas", "CARPETA": "/home/juan/.cromes/atlas", "SSHprox":"3452",
"HOME": "https://10.0.0.1", "SSHport":"4200", "SSHdom":"s2.hgtec.com.ar", "HOME": "https://10.0.0.1", "SSHport":"2222", "SSHdom":"restobaratlas.com.ar",
"SSHuser":"juan", "SSHpass":"xvc7733455"} "SSHuser":"isva", "SSHpass":"kernel2016"}
Personal = {"nombre": "Personal", "CARPETA": "/home/juan/.cromes/personal"} Personal = {"nombre": "Personal", "CARPETA": "/home/juan/.cromes/personal"}
inv = {"nombre": "Investig..", "CARPETA": "/home/juan/.cromes/inv"}
Temp = {"nombre": "Temporal", "CARPETA": "/dev/shm/personal"} Temp = {"nombre": "Temporal", "CARPETA": "/dev/shm/personal"}
nabegadores = [HGT, Temp, Remoto, Personal, cciv, isva, atlas]
\ No newline at end of file \ No newline at end of file
nabegadores = [HGT, inv, Temp, Remoto, Personal, cciv, isva, atlas]
\ No newline at end of file \ No newline at end of file
...@@ -15,7 +15,7 @@ class App(QWidget): ...@@ -15,7 +15,7 @@ class App(QWidget):
self.top = 10 self.top = 10
self.width = 120 self.width = 120
self.height = 200 self.height = 200
self.ordenV = 0 self.ordenV = 5
self.initUI() self.initUI()
def initUI(self): def initUI(self):
...@@ -24,7 +24,8 @@ class App(QWidget): ...@@ -24,7 +24,8 @@ class App(QWidget):
self.show() self.show()
self.GenerarBotones() self.GenerarBotones()
self.setWindowIcon(QtGui.QIcon('IMG/Browser.png')) self.setWindowIcon(QtGui.QIcon('IMG/Browser.png'))
self.hide() #self.hide()
tray.action()
def GenerarBotones(self): def GenerarBotones(self):
...@@ -47,15 +48,17 @@ class App(QWidget): ...@@ -47,15 +48,17 @@ class App(QWidget):
pass pass
print(comando) print(comando)
archivos.ejecutar(self, comando) archivos.ejecutar(self, comando)
self.hide() #self.hide()
tray.action()
def constructor(self, name, id): def constructor(self, name, id):
self.ordenV += 25
button1 = QPushButton(str(name), self) button1 = QPushButton(str(name), self)
button1.move(10, self.ordenV) button1.move(10, self.ordenV)
button1.clicked.connect(lambda x:self.button_pushed(id)) button1.clicked.connect(lambda x:self.button_pushed(id))
button1.show() button1.show()
self.ordenV += 25
if __name__ == '__main__': if __name__ == '__main__':
app = QApplication(sys.argv) app = QApplication(sys.argv)
ex = App() ex = App()
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!