Explorar el Código

troop selection: add success message

Bastien Sevajol hace 6 años
padre
commit
9b09899640
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      opencombat/strategy/selection/gui.py

+ 7 - 0
opencombat/strategy/selection/gui.py Ver fichero

@@ -193,6 +193,13 @@ class SelectTroopsGui(Gui):
193 193
             )
194 194
             with open(troops_file_path, 'w+') as file:
195 195
                 file.write(troops_xml)
196
+
197
+            messagebox.showinfo(
198
+                'Troops file generated',
199
+                'Troops file successfully generate at "{}"'.format(
200
+                    troops_file_path,
201
+                )
202
+            )
196 203
         else:
197 204
             messagebox.showinfo(
198 205
                 'Missing information',