projects
/
iramuteq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
...
[iramuteq]
/
functions.py
diff --git
a/functions.py
b/functions.py
index
6373176
..
8cd7352
100644
(file)
--- a/
functions.py
+++ b/
functions.py
@@
-306,7
+306,7
@@
def write_tab(tab, fileout) :
class BugDialog(wx.Dialog):
def __init__(self, *args, **kwds):
# begin wxGlade: MyDialog.__init__
class BugDialog(wx.Dialog):
def __init__(self, *args, **kwds):
# begin wxGlade: MyDialog.__init__
- kwds["style"] = wx.DEFAULT_DIALOG_STYLE
+ kwds["style"] = wx.DEFAULT_DIALOG_STYLE
| wx.STAY_ON_TOP
kwds["size"] = wx.Size(500, 200)
wx.Dialog.__init__(self, *args, **kwds)
self.SetTitle(kwds['title'])
kwds["size"] = wx.Size(500, 200)
wx.Dialog.__init__(self, *args, **kwds)
self.SetTitle(kwds['title'])
@@
-695,21
+695,21
@@
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.SetSize((400,150))
+ prog.SetIcon(ira._icon)
+ return prog
def treat_var_mod(variables) :
var_mod = {}
def treat_var_mod(variables) :
var_mod = {}