[Greater-commits] r447 - trunk/GREAT-ER/Greater/Modules
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jul 14 11:55:31 CEST 2011
Author: aheinecke
Date: 2011-07-14 11:55:31 +0200 (Thu, 14 Jul 2011)
New Revision: 447
Modified:
trunk/GREAT-ER/Greater/Modules/alpha.py
Log:
Resolve fixme by bringing already opened dialogs to front
Modified: trunk/GREAT-ER/Greater/Modules/alpha.py
===================================================================
--- trunk/GREAT-ER/Greater/Modules/alpha.py 2011-07-14 09:34:17 UTC (rev 446)
+++ trunk/GREAT-ER/Greater/Modules/alpha.py 2011-07-14 09:55:31 UTC (rev 447)
@@ -30,8 +30,7 @@
window.add_dialog(name, dialog)
dialog.Show(True)
else:
- # FIXME: bring dialog to front here
- pass
+ dialog.Raise()
def show_session_discharge_table(context):
window = context.mainwindow
@@ -46,8 +45,7 @@
window.add_dialog(name, dialog)
dialog.Show(True)
else:
- # FIXME: bring dialog to front here
- pass
+ dialog.Raise()
def show_market_discharge_table(context):
window = context.mainwindow
@@ -62,8 +60,7 @@
window.add_dialog(name, dialog)
dialog.Show(True)
else:
- # FIXME: bring dialog to front here
- pass
+ dialog.Raise()
def show_stretch_table(context):
window = context.mainwindow
@@ -76,8 +73,7 @@
window.add_dialog(name, dialog)
dialog.Show(True)
else:
- # FIXME: bring dialog to front here
- pass
+ dialog.Raise()
def show_discharge_results_table(context):
window = context.mainwindow
@@ -90,8 +86,7 @@
window.add_dialog(name, dialog)
dialog.Show(True)
else:
- # FIXME: bring dialog to front here
- pass
+ dialog.Raise()
def show_stretch_results_table(context):
window = context.mainwindow
@@ -104,10 +99,8 @@
window.add_dialog(name, dialog)
dialog.Show(True)
else:
- # FIXME: bring dialog to front here
- pass
+ dialog.Raise()
-
registry.Add(Command("show_discharge_table", "Show &Discharge Table",
show_discharge_table, helptext = "Show discharge table",
sensitive = context_catchment_open))
More information about the Greater-commits
mailing list