projects
/
iramuteq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d1b223a
)
...
author
Pierre Ratinaud
<ratinaud@univ-tlse2.fr>
Thu, 4 Dec 2014 22:01:56 +0000
(23:01 +0100)
committer
Pierre Ratinaud
<ratinaud@univ-tlse2.fr>
Thu, 4 Dec 2014 22:01:56 +0000
(23:01 +0100)
functions.py
patch
|
blob
|
history
diff --git
a/functions.py
b/functions.py
index
6373176
..
1e8141f
100644
(file)
--- a/
functions.py
+++ b/
functions.py
@@
-695,20
+695,20
@@
def read_list_file(filename, encoding = sys.getdefaultencoding()):
def progressbar(self, maxi) :
def progressbar(self, maxi) :
- if 'parent' in dir(self) :
- parent = self.parent
- else :
- parent = self
+ ira = wx.GetApp().GetTopWindow()
+ parent = ira
try :
maxi = int(maxi)
except :
maxi = 1
try :
maxi = int(maxi)
except :
maxi = 1
-
return
wx.ProgressDialog("Traitements",
+
prog =
wx.ProgressDialog("Traitements",
"Veuillez patienter...",
maximum=maxi,
parent=parent,
style=wx.PD_APP_MODAL | wx.PD_AUTO_HIDE | wx.PD_ELAPSED_TIME | wx.PD_CAN_ABORT
)
"Veuillez patienter...",
maximum=maxi,
parent=parent,
style=wx.PD_APP_MODAL | wx.PD_AUTO_HIDE | wx.PD_ELAPSED_TIME | wx.PD_CAN_ABORT
)
+ prog.SetIcon(ira._icon)
+ return prog
def treat_var_mod(variables) :
def treat_var_mod(variables) :