1
0
mirror of https://github.com/naruxde/revpipycontrol.git synced 2025-11-08 15:43:52 +01:00

Style in Devices bei Watch-Mode verbessert

?bersetzungen
linux und mac haben selbe setup.py Einstellungen
This commit is contained in:
2019-09-16 21:17:19 +02:00
parent 63f60f9e36
commit 93e02df73e
4 changed files with 125 additions and 94 deletions

View File

@@ -1,8 +1,8 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: RevPiPyControl 0.4.0\n" "Project-Id-Version: RevPiPyControl 0.4.0\n"
"POT-Creation-Date: 2018-10-07 12:08+0200\n" "POT-Creation-Date: 2019-09-16 20:56+0200\n"
"PO-Revision-Date: 2018-10-07 12:08+0200\n" "PO-Revision-Date: 2019-09-16 20:56+0200\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: de\n" "Language: de\n"
@@ -20,13 +20,13 @@ msgid "Level"
msgstr "Level" msgstr "Level"
#: aclmanager.py:76 aclmanager.py:276 mqttmanager.py:66 revpilegacy.py:68 #: aclmanager.py:76 aclmanager.py:276 mqttmanager.py:66 revpilegacy.py:68
#: revpilegacy.py:281 revpilegacy.py:328 revpioption.py:101 revpioption.py:377 #: revpilegacy.py:281 revpilegacy.py:328 revpioption.py:130 revpioption.py:458
#: revpioption.py:446 revpiplclist.py:62 revpiplclist.py:203 #: revpioption.py:530 revpiplclist.py:62 revpiplclist.py:203
#: revpiprogram.py:393 revpiprogram.py:467 #: revpiprogram.py:393 revpiprogram.py:467
msgid "Question" msgid "Question"
msgstr "Frage" msgstr "Frage"
#: aclmanager.py:77 mqttmanager.py:67 revpilegacy.py:69 revpioption.py:102 #: aclmanager.py:77 mqttmanager.py:67 revpilegacy.py:69 revpioption.py:131
#: revpiplclist.py:63 #: revpiplclist.py:63
msgid "" msgid ""
"Do you really want to quit? \n" "Do you really want to quit? \n"
@@ -71,13 +71,13 @@ msgstr "in Liste einfügen"
msgid "clear" msgid "clear"
msgstr "leeren" msgstr "leeren"
#: aclmanager.py:259 mqttmanager.py:270 revpilegacy.py:235 revpioption.py:322 #: aclmanager.py:259 mqttmanager.py:270 revpilegacy.py:235 revpioption.py:390
#: revpiplclist.py:138 #: revpiplclist.py:138
msgid "Save" msgid "Save"
msgstr "Speichern" msgstr "Speichern"
#: aclmanager.py:264 mqttmanager.py:275 revpiinfo.py:140 revpilegacy.py:240 #: aclmanager.py:264 mqttmanager.py:275 revpiinfo.py:140 revpilegacy.py:240
#: revpioption.py:327 revpiplclist.py:142 #: revpioption.py:395 revpiplclist.py:142
msgid "Close" msgid "Close"
msgstr "Schließen" msgstr "Schließen"
@@ -93,9 +93,9 @@ msgstr ""
"IP: {0} / Level: {1}" "IP: {0} / Level: {1}"
#: aclmanager.py:291 aclmanager.py:367 revpicheckclient.py:112 #: aclmanager.py:291 aclmanager.py:367 revpicheckclient.py:112
#: revpicheckclient.py:335 revpicheckclient.py:460 revpidevelop.py:216 #: revpicheckclient.py:342 revpicheckclient.py:493 revpidevelop.py:216
#: revpidevelop.py:224 revpidevelop.py:252 revpilegacy.py:318 #: revpidevelop.py:224 revpidevelop.py:252 revpilegacy.py:318
#: revpioption.py:115 revpioption.py:436 revpiplclist.py:227 #: revpioption.py:144 revpioption.py:520 revpiplclist.py:227
#: revpiprogram.py:329 revpiprogram.py:360 revpiprogram.py:423 #: revpiprogram.py:329 revpiprogram.py:360 revpiprogram.py:423
#: revpiprogram.py:429 revpiprogram.py:435 revpiprogram.py:443 #: revpiprogram.py:429 revpiprogram.py:435 revpiprogram.py:443
#: revpiprogram.py:449 revpiprogram.py:482 revpiprogram.py:566 #: revpiprogram.py:449 revpiprogram.py:482 revpiprogram.py:566
@@ -218,41 +218,41 @@ msgstr ""
"Angegebener Wert für Output '{0}' ist nicht gültig! \n" "Angegebener Wert für Output '{0}' ist nicht gültig! \n"
"Setze auf '{1}' zurück" "Setze auf '{1}' zurück"
#: revpicheckclient.py:216 #: revpicheckclient.py:223
msgid "Devices of RevPi" msgid "Devices of RevPi"
msgstr "Devices vom RevPi" msgstr "Devices vom RevPi"
#: revpicheckclient.py:248 #: revpicheckclient.py:255
msgid "Control" msgid "Control"
msgstr "Kontrolle" msgstr "Kontrolle"
#: revpicheckclient.py:252 #: revpicheckclient.py:259
msgid "Read all IOs" msgid "Read all IOs"
msgstr "Lese alle IOs" msgstr "Lese alle IOs"
#: revpicheckclient.py:257 #: revpicheckclient.py:264
msgid "Read just Inputs" msgid "Read just Inputs"
msgstr "Nur Inputs lesen" msgstr "Nur Inputs lesen"
#: revpicheckclient.py:264 #: revpicheckclient.py:271
msgid "Write Outputs" msgid "Write Outputs"
msgstr "Outputs schreiben" msgstr "Outputs schreiben"
#: revpicheckclient.py:270 #: revpicheckclient.py:277
msgid "Autorefresh values" msgid "Autorefresh values"
msgstr "Aktualisiere Werte automatisch" msgstr "Aktualisiere Werte automatisch"
#: revpicheckclient.py:278 #: revpicheckclient.py:285
msgid "Write values to RevPi" msgid "Write values to RevPi"
msgstr "Schreibe Werte auf RevPi" msgstr "Schreibe Werte auf RevPi"
#: revpicheckclient.py:292 revpidevelop.py:284 revpiprogram.py:456 #: revpicheckclient.py:299 revpidevelop.py:284 revpiprogram.py:456
#: revpipycontrol.py:255 revpipycontrol.py:304 revpipycontrol.py:338 #: revpipycontrol.py:255 revpipycontrol.py:304 revpipycontrol.py:338
#: revpipycontrol.py:356 revpipycontrol.py:389 #: revpipycontrol.py:356 revpipycontrol.py:389
msgid "Warning" msgid "Warning"
msgstr "Warnung" msgstr "Warnung"
#: revpicheckclient.py:293 #: revpicheckclient.py:300
msgid "" msgid ""
"You want to set outputs on the RevPi! Note that these are set " "You want to set outputs on the RevPi! Note that these are set "
"IMMEDIATELY!!! \n" "IMMEDIATELY!!! \n"
@@ -264,13 +264,13 @@ msgstr ""
"Wenn auf dem RevPi ein anderes Programm zur Steuerung läuft, könnte dies " "Wenn auf dem RevPi ein anderes Programm zur Steuerung läuft, könnte dies "
"gestört werden und die Ausgänge wieder zurücksetzen." "gestört werden und die Ausgänge wieder zurücksetzen."
#: revpicheckclient.py:336 #: revpicheckclient.py:343
msgid "To many errors while reading IO data. Can not show the Watch-Mode." msgid "To many errors while reading IO data. Can not show the Watch-Mode."
msgstr "" msgstr ""
"Zu viele Fehler beim Lesen der IO-Daten. Watch-Mode kann nicht angezeigt " "Zu viele Fehler beim Lesen der IO-Daten. Watch-Mode kann nicht angezeigt "
"werden." "werden."
#: revpicheckclient.py:456 #: revpicheckclient.py:489
#, python-brace-format #, python-brace-format
msgid "Error set value of device '{0}' Output '{1}': {2} \n" msgid "Error set value of device '{0}' Output '{1}': {2} \n"
msgstr "Fehler beim Setzen der Werte auf Device '{0}' bei Output '{1}': {2} \n" msgstr "Fehler beim Setzen der Werte auf Device '{0}' bei Output '{1}': {2} \n"
@@ -295,8 +295,8 @@ msgstr "Stoppen / Hochladen / Starten"
msgid "Just upload" msgid "Just upload"
msgstr "Nur hochladen" msgstr "Nur hochladen"
#: revpidevelop.py:207 revpilegacy.py:273 revpilegacy.py:310 revpioption.py:365 #: revpidevelop.py:207 revpilegacy.py:273 revpilegacy.py:310 revpioption.py:446
#: revpioption.py:428 revpiplclist.py:219 revpiprogram.py:97 #: revpioption.py:512 revpiplclist.py:219 revpiprogram.py:97
msgid "Information" msgid "Information"
msgstr "Information" msgstr "Information"
@@ -376,51 +376,51 @@ msgstr ""
"\n" "\n"
"(c) Sven Sager, Lizenz: LGPLv3" "(c) Sven Sager, Lizenz: LGPLv3"
#: revpilegacy.py:79 revpioption.py:125 #: revpilegacy.py:79 revpioption.py:154
msgid "RevPi Python PLC Options" msgid "RevPi Python PLC Options"
msgstr "RevPi Python PLC Einstellungen" msgstr "RevPi Python PLC Einstellungen"
#: revpilegacy.py:89 revpioption.py:136 #: revpilegacy.py:89 revpioption.py:168
msgid "Start / Stop behavior" msgid "Start / Stop behavior"
msgstr "Start / Stop Verhalten" msgstr "Start / Stop Verhalten"
#: revpilegacy.py:98 revpioption.py:146 #: revpilegacy.py:98 revpioption.py:181
msgid "Start program automatically" msgid "Start program automatically"
msgstr "Starte Programm automatisch" msgstr "Starte Programm automatisch"
#: revpilegacy.py:104 revpioption.py:152 #: revpilegacy.py:104 revpioption.py:188
msgid "Restart program after exit" msgid "Restart program after exit"
msgstr "Starte Programm nach Beenden neu" msgstr "Starte Programm nach Beenden neu"
#: revpilegacy.py:110 revpioption.py:168 #: revpilegacy.py:110 revpioption.py:206
msgid "Set process image to NULL if program terminates..." msgid "Set process image to NULL if program terminates..."
msgstr "Prozessabbild auf NULL setzen, wenn Programm..." msgstr "Prozessabbild auf NULL setzen, wenn Programm..."
#: revpilegacy.py:115 revpioption.py:173 #: revpilegacy.py:115 revpioption.py:212
msgid "... successfully" msgid "... successfully"
msgstr "... ohne Fehler beendet" msgstr "... ohne Fehler beendet"
#: revpilegacy.py:121 revpioption.py:179 #: revpilegacy.py:121 revpioption.py:219
msgid "... with errors" msgid "... with errors"
msgstr "... mit Fehlern beendet" msgstr "... mit Fehlern beendet"
#: revpilegacy.py:127 revpioption.py:187 #: revpilegacy.py:127 revpioption.py:247
msgid "PLC program" msgid "PLC program"
msgstr "PLC Programm" msgstr "PLC Programm"
#: revpilegacy.py:138 revpioption.py:197 #: revpilegacy.py:138 revpioption.py:259
msgid "Python version" msgid "Python version"
msgstr "Python Version" msgstr "Python Version"
#: revpilegacy.py:157 revpioption.py:216 #: revpilegacy.py:157 revpioption.py:278
msgid "Python PLC program name" msgid "Python PLC program name"
msgstr "Python PLC Programmname" msgstr "Python PLC Programmname"
#: revpilegacy.py:172 revpioption.py:234 #: revpilegacy.py:172
msgid "Program arguments" msgid "Program arguments"
msgstr "Programmargumente" msgstr "Programmargumente"
#: revpilegacy.py:183 revpioption.py:253 #: revpilegacy.py:183 revpioption.py:321
msgid "Use RevPi as PLC-Slave" msgid "Use RevPi as PLC-Slave"
msgstr "RevPi als PLC-Slave verwenden" msgstr "RevPi als PLC-Slave verwenden"
@@ -428,7 +428,7 @@ msgstr "RevPi als PLC-Slave verwenden"
msgid "XML-RPC server" msgid "XML-RPC server"
msgstr "XML-RPC Server" msgstr "XML-RPC Server"
#: revpilegacy.py:201 revpioption.py:309 #: revpilegacy.py:201 revpioption.py:377
msgid "Activate XML-RPC server on RevPi" msgid "Activate XML-RPC server on RevPi"
msgstr "Aktiviere XML-RPC Server auf RevPi" msgstr "Aktiviere XML-RPC Server auf RevPi"
@@ -452,7 +452,7 @@ msgstr ""
msgid "XML-RPC server port" msgid "XML-RPC server port"
msgstr "XML-RPC Serverport" msgstr "XML-RPC Serverport"
#: revpilegacy.py:274 revpioption.py:366 #: revpilegacy.py:274 revpioption.py:447
msgid "You have not made any changes to save." msgid "You have not made any changes to save."
msgstr "Sie haben keine Änderungen zum Speichern vorgenommen." msgstr "Sie haben keine Änderungen zum Speichern vorgenommen."
@@ -468,17 +468,17 @@ msgstr ""
"Sollen die neuen Einstellungen sofort in Kraft treten? \n" "Sollen die neuen Einstellungen sofort in Kraft treten? \n"
"Dies bedeutet einen Neustart des Dienstes und des laufenden PLC-Programms!" "Dies bedeutet einen Neustart des Dienstes und des laufenden PLC-Programms!"
#: revpilegacy.py:311 revpioption.py:429 #: revpilegacy.py:311 revpioption.py:513
msgid "Settings saved" msgid "Settings saved"
msgstr "Einstellungen gespeichert" msgstr "Einstellungen gespeichert"
#: revpilegacy.py:319 revpioption.py:437 #: revpilegacy.py:319 revpioption.py:521
msgid "The settings could not be saved. This can happen if values are wrong!" msgid "The settings could not be saved. This can happen if values are wrong!"
msgstr "" msgstr ""
"Die Einstellungen konnten nicht gesichert werden. Dies kann passieren, wenn " "Die Einstellungen konnten nicht gesichert werden. Dies kann passieren, wenn "
"Werte falsch sind!" "Werte falsch sind!"
#: revpilegacy.py:329 revpioption.py:447 #: revpilegacy.py:329 revpioption.py:531
msgid "" msgid ""
"Are you sure you want to deactivate the XML-RPC server? You will NOT be able " "Are you sure you want to deactivate the XML-RPC server? You will NOT be able "
"to access the Revolution Pi with this program." "to access the Revolution Pi with this program."
@@ -506,47 +506,75 @@ msgstr "Python PLC Programm - Logdatei"
msgid "Can not access log file on the RevPi" msgid "Can not access log file on the RevPi"
msgstr "Auf die Logdatei des RevPi kann nicht zugegriffen werden" msgstr "Auf die Logdatei des RevPi kann nicht zugegriffen werden"
#: revpioption.py:116 #: revpioption.py:58
msgid "Do not use replace io file"
msgstr "Keine replace io Datei verwenden"
#: revpioption.py:59
msgid "Use static file from RevPiPyLoad"
msgstr "Statische Datei von RevPiPyLoad"
#: revpioption.py:60
msgid "Use dynamic file from work directory"
msgstr "Dynamische Datei des Steuerungsprogramms"
#: revpioption.py:61
msgid "Give own path and filename"
msgstr "Eigenen Pfad angeben"
#: revpioption.py:145
msgid "The value of 'restart delay' ist not valid." msgid "The value of 'restart delay' ist not valid."
msgstr "Der Wert für 'Neustart Verzögerung' ist nicht gültig." msgstr "Der Wert für 'Neustart Verzögerung' ist nicht gültig."
#: revpioption.py:158 #: revpioption.py:195
msgid "Restart after n seconds of delay" msgid "Restart after n seconds of delay"
msgstr "Neustart nach n Sekunden Verzögerung" msgstr "Neustart nach n Sekunden Verzögerung"
#: revpioption.py:244 #: revpioption.py:225
msgid "Replace IO file:"
msgstr "Replace IO Datei:"
#: revpioption.py:296
msgid "Program arguments:"
msgstr "Programmargumente:"
#: revpioption.py:305
msgid "Set write access to workdirectory"
msgstr "Schreibzugriffe in Arbeitsverzeichnis erlauben"
#: revpioption.py:312
msgid "RevPiPyLoad server services" msgid "RevPiPyLoad server services"
msgstr "RevPiPyLoad Server Dienste" msgstr "RevPiPyLoad Server Dienste"
#: revpioption.py:259 revpioption.py:315 #: revpioption.py:327 revpioption.py:383
msgid "Edit ACL" msgid "Edit ACL"
msgstr "ACL bearbeiten" msgstr "ACL bearbeiten"
#: revpioption.py:264 #: revpioption.py:332
msgid "RevPi-Slave service is:" msgid "RevPi-Slave service is:"
msgstr "RevPi-Slave Dienst Status:" msgstr "RevPi-Slave Dienst Status:"
#: revpioption.py:270 revpioption.py:299 #: revpioption.py:338 revpioption.py:367
msgid "running" msgid "running"
msgstr "läuft" msgstr "läuft"
#: revpioption.py:270 revpioption.py:299 #: revpioption.py:338 revpioption.py:367
msgid "stopped" msgid "stopped"
msgstr "beendet" msgstr "beendet"
#: revpioption.py:283 #: revpioption.py:351
msgid "MQTT process image publisher" msgid "MQTT process image publisher"
msgstr "MQTT Übertragung des Prozessabbilds" msgstr "MQTT Übertragung des Prozessabbilds"
#: revpioption.py:289 #: revpioption.py:357
msgid "Settings" msgid "Settings"
msgstr "Einstellungen" msgstr "Einstellungen"
#: revpioption.py:294 #: revpioption.py:362
msgid "MQTT publish service is:" msgid "MQTT publish service is:"
msgstr "MQTT Übertragungsdienst Status:" msgstr "MQTT Übertragungsdienst Status:"
#: revpioption.py:378 #: revpioption.py:459
msgid "" msgid ""
"The settings will be set on the Revolution Pi now. \n" "The settings will be set on the Revolution Pi now. \n"
"\n" "\n"
@@ -560,31 +588,31 @@ msgstr ""
"Programm jetzt neu starten!\n" "Programm jetzt neu starten!\n"
"ACL Änderungen und Diensteinstellungen werden sofort angewandt." "ACL Änderungen und Diensteinstellungen werden sofort angewandt."
#: revpioption.py:478 #: revpioption.py:562
msgid "read only" msgid "read only"
msgstr "nur lesen" msgstr "nur lesen"
#: revpioption.py:479 #: revpioption.py:563
msgid "read and write" msgid "read and write"
msgstr "lesen und schreiben" msgstr "lesen und schreiben"
#: revpioption.py:495 #: revpioption.py:579
msgid "Start/Stop PLC program and read logs" msgid "Start/Stop PLC program and read logs"
msgstr "PLC Programm starten/stoppen und Logs lesen" msgstr "PLC Programm starten/stoppen und Logs lesen"
#: revpioption.py:496 #: revpioption.py:580
msgid "+ read IOs in watch modus" msgid "+ read IOs in watch modus"
msgstr "+ IOs in 'Watch modus' lesen" msgstr "+ IOs in 'Watch modus' lesen"
#: revpioption.py:497 #: revpioption.py:581
msgid "+ read properties and download PLC program" msgid "+ read properties and download PLC program"
msgstr "+ Einstellungen lesen und PLC Programm herunterladen" msgstr "+ Einstellungen lesen und PLC Programm herunterladen"
#: revpioption.py:498 #: revpioption.py:582
msgid "+ upload PLC program" msgid "+ upload PLC program"
msgstr "+ PLC Programm hochladen" msgstr "+ PLC Programm hochladen"
#: revpioption.py:499 #: revpioption.py:583
msgid "+ set properties" msgid "+ set properties"
msgstr "+ Einstellungen ändern" msgstr "+ Einstellungen ändern"

View File

@@ -102,7 +102,7 @@ class RevPiCheckClient(tkinter.Frame):
newvalue = io[5].get() newvalue = io[5].get()
# Wertebereich prüfen # Wertebereich prüfen
if not self.minint(io) <= newvalue <= self.maxint(io): if not self.minint(io) <= newvalue <= self.maxint(io):
raise ValueError("too big") raise ValueError("value not valid")
self.__chval(device, io) self.__chval(device, io)
@@ -144,6 +144,7 @@ class RevPiCheckClient(tkinter.Frame):
heigh=calc_heigh if calc_heigh <= 600 else 600 heigh=calc_heigh if calc_heigh <= 600 else 600
) )
s_frame = tkinter.Frame(canvas) s_frame = tkinter.Frame(canvas)
s_frame.columnconfigure(1, weight=1)
vsb = tkinter.Scrollbar(frame, orient="vertical", command=canvas.yview) vsb = tkinter.Scrollbar(frame, orient="vertical", command=canvas.yview)
canvas.configure(yscrollcommand=vsb.set) canvas.configure(yscrollcommand=vsb.set)
@@ -203,7 +204,8 @@ class RevPiCheckClient(tkinter.Frame):
lambda device=device, io=io: self.__chval(device, io) lambda device=device, io=io: self.__chval(device, io)
txt["state"] = "disabled" if iotype == "inp" or \ txt["state"] = "disabled" if iotype == "inp" or \
self.maxint(io) == 0 else "normal" self.maxint(io) == 0 else "normal"
txt["width"] = 5 width = len(str(self.maxint(io))) + 1
txt["width"] = 7 if width > 7 else width
txt["textvariable"] = var txt["textvariable"] = var
txt.grid(column=0, row=rowcount) txt.grid(column=0, row=rowcount)
@@ -211,6 +213,7 @@ class RevPiCheckClient(tkinter.Frame):
io.insert(5, var) io.insert(5, var)
rowcount += 1 rowcount += 1
s_frame.update()
def _createwidgets(self): def _createwidgets(self):
"""Erstellt den Fensterinhalt.""" """Erstellt den Fensterinhalt."""
@@ -227,7 +230,6 @@ class RevPiCheckClient(tkinter.Frame):
"WM_DELETE_WINDOW", "WM_DELETE_WINDOW",
lambda win=win: self.__hidewin(win) lambda win=win: self.__hidewin(win)
) )
win.resizable(False, True)
win.withdraw() win.withdraw()
self.dict_wins[dev] = win self.dict_wins[dev] = win
@@ -239,6 +241,7 @@ class RevPiCheckClient(tkinter.Frame):
for iotype in ["inp", "out"]: for iotype in ["inp", "out"]:
frame = tkinter.Frame(group) frame = tkinter.Frame(group)
frame.pack(side="left", fill="both", expand=True) frame.pack(side="left", fill="both", expand=True)
frame.update()
self._createiogroup(dev, frame, iotype) self._createiogroup(dev, frame, iotype)
# Button erstellen # Button erstellen

View File

@@ -163,8 +163,8 @@ class RevPiOption(tkinter.Frame):
# Gruppe Start/Stop # Gruppe Start/Stop
stst = tkinter.LabelFrame(self) stst = tkinter.LabelFrame(self)
stst.columnconfigure(0, weight=1) stst.columnconfigure(0, weight=1)
stst.columnconfigure(1, weight=1)
stst.columnconfigure(2, weight=1) stst.columnconfigure(2, weight=1)
stst.columnconfigure(3, weight=1)
stst["text"] = _("Start / Stop behavior") stst["text"] = _("Start / Stop behavior")
stst.grid(columnspan=2, pady=2, sticky="we") stst.grid(columnspan=2, pady=2, sticky="we")

View File

@@ -19,11 +19,14 @@ class MyEggInfo(distutils.command.install_egg_info.install_egg_info):
globsetup = { globsetup = {
"version": "0.8.0",
"author": "Sven Sager", "author": "Sven Sager",
"author_email": "akira@narux.de", "author_email": "akira@narux.de",
"maintainer": "Sven Sager",
"maintainer_email": "akira@revpimodio.org",
"url": "https://revpimodio.org/revpipyplc/", "url": "https://revpimodio.org/revpipyplc/",
"license": "LGPLv3", "license": "LGPLv3",
"version": "0.8.0",
"name": "revpipycontrol", "name": "revpipycontrol",
@@ -35,40 +38,18 @@ globsetup = {
"Außerdem stellt es einen XML-RPC Server bereit, über den die Software\n" "Außerdem stellt es einen XML-RPC Server bereit, über den die Software\n"
"auf den RevPi geladen werden kann. Das Prozessabbild kann über ein Tool\n" "auf den RevPi geladen werden kann. Das Prozessabbild kann über ein Tool\n"
"zur Laufzeit überwacht werden.", "zur Laufzeit überwacht werden.",
"install_requires": ["tkinter"],
"classifiers": [
"License :: OSI Approved :: "
"GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: POSIX :: Linux",
],
"cmdclass": {"install_egg_info": MyEggInfo},
} }
# TODO: Mac einbauen if platform == "win32":
if platform == "linux":
from setuptools import setup
setup(
maintainer="Sven Sager",
maintainer_email="akira@revpimodio.org",
scripts=["data/revpipycontrol"],
data_files=[
("share/applications", ["data/revpipycontrol.desktop"]),
("share/icons/hicolor/32x32/apps", ["data/revpipycontrol.png"]),
("share/revpipycontrol", glob("revpipycontrol/*.*")),
("share/revpipycontrol/shared", glob("revpipycontrol/shared/*.*")),
(
"share/revpipycontrol/locale/de/LC_MESSAGES",
glob("revpipycontrol/locale/de/LC_MESSAGES/*.mo")
),
],
install_requires=["tkinter"],
classifiers=[
"License :: OSI Approved :: "
"GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: POSIX :: Linux",
],
cmdclass={"install_egg_info": MyEggInfo},
**globsetup
)
elif platform == "win32":
import sys import sys
from cx_Freeze import setup, Executable from cx_Freeze import setup, Executable
@@ -92,5 +73,24 @@ elif platform == "win32":
] ]
}}, }},
executables=[exe], executables=[exe],
**globsetup
)
else:
from setuptools import setup
setup(
scripts=["data/revpipycontrol"],
data_files=[
("share/applications", ["data/revpipycontrol.desktop"]),
("share/icons/hicolor/32x32/apps", ["data/revpipycontrol.png"]),
("share/revpipycontrol", glob("revpipycontrol/*.*")),
("share/revpipycontrol/shared", glob("revpipycontrol/shared/*.*")),
(
"share/revpipycontrol/locale/de/LC_MESSAGES",
glob("revpipycontrol/locale/de/LC_MESSAGES/*.mo")
),
],
**globsetup **globsetup
) )