projects
/
iramuteq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.6 alpha 3
[iramuteq]
/
layout.py
diff --git
a/layout.py
b/layout.py
index
3b7024a
..
022f242
100644
(file)
--- a/
layout.py
+++ b/
layout.py
@@
-269,7
+269,7
@@
class GraphPanel(wx.ScrolledWindow):
else :
self.listimg.append(wx.StaticBitmap(self, -1, wx.Bitmap(os.path.join(self.dirout,list_graph[i][0]), wx.BITMAP_TYPE_ANY)))
self.labels.append(wx.StaticText(self, -1, list_graph[i][1]))
else :
self.listimg.append(wx.StaticBitmap(self, -1, wx.Bitmap(os.path.join(self.dirout,list_graph[i][0]), wx.BITMAP_TYPE_ANY)))
self.labels.append(wx.StaticText(self, -1, list_graph[i][1]))
-
+ self.Bind(wx.EVT_MOTION, self.onMouseMove)
self.__set_properties()
self.__do_layout()
self.__set_properties()
self.__do_layout()
@@
-290,6
+290,9
@@
class GraphPanel(wx.ScrolledWindow):
self.sizer_2.Add(self.sizer_1, 1, wx.EXPAND, 0)
self.SetSizer(self.sizer_1)
self.sizer_1.Fit(self)
self.sizer_2.Add(self.sizer_1, 1, wx.EXPAND, 0)
self.SetSizer(self.sizer_1)
self.sizer_1.Fit(self)
+
+ def onMouseMove(self, event):
+ self.SetFocus()
def open_antiprofil(panel, AntiProfile, encoding) :
def open_antiprofil(panel, AntiProfile, encoding) :
@@
-785,7
+788,12
@@
class CopusPanel(wx.Panel) :
fgSizer5.Add( self.m_staticText21, 0, wx.ALL, 5 )
description = {'lang' : u'langue',
fgSizer5.Add( self.m_staticText21, 0, wx.ALL, 5 )
description = {'lang' : u'langue',
- 'encoding' : u'encodage'}
+ 'encoding' : u'encodage',
+ 'ucinb' : u'Nombre de textes',
+ 'ucenb' : u'Nombre de segments de texte',
+ 'formesnb' : u'Nombre de formes',
+ 'hapax' : u'Nombre d\'hapax'
+ }
keys = ['lang', 'encoding', 'originalpath', 'pathout', 'date', 'time']
keys = ['lang', 'encoding', 'originalpath', 'pathout', 'date', 'time']
@@
-818,7
+826,7
@@
class CopusPanel(wx.Panel) :
def addkeys(self, keys, description) :
for key in keys :
def addkeys(self, keys, description) :
for key in keys :
- option = self.parametres.get(key,u'non déf
n
ini')
+ option = self.parametres.get(key,u'non défini')
if isinstance(option, int) :
option = `option`
text = wx.StaticText( self, wx.ID_ANY, description.get(key, key), wx.DefaultPosition, wx.DefaultSize, 0 )
if isinstance(option, int) :
option = `option`
text = wx.StaticText( self, wx.ID_ANY, description.get(key, key), wx.DefaultPosition, wx.DefaultSize, 0 )
@@
-1169,7
+1177,7
@@
class GraphPanelSimi(wx.Panel):
else :
self.listimg.append(wx.StaticBitmap(self.panel_1, -1, wx.Bitmap(os.path.join(self.dirout,list_graph[i][0]), wx.BITMAP_TYPE_ANY)))
self.labels.append(wx.StaticText(self.panel_1, -1, list_graph[i][1]))
else :
self.listimg.append(wx.StaticBitmap(self.panel_1, -1, wx.Bitmap(os.path.join(self.dirout,list_graph[i][0]), wx.BITMAP_TYPE_ANY)))
self.labels.append(wx.StaticText(self.panel_1, -1, list_graph[i][1]))
-
+ self.panel_1.Bind(wx.EVT_MOTION, self.onMouseMove)
self.__set_properties()
self.__do_layout()
self.__set_properties()
self.__do_layout()
@@
-1192,3
+1200,6
@@
class GraphPanelSimi(wx.Panel):
self.sizer_1.Add(self.sizer_2, 0, wx.EXPAND, 0)
self.sizer_1.Add(self.panel_1, 1, wx.EXPAND, 0)
self.SetSizer(self.sizer_1)
self.sizer_1.Add(self.sizer_2, 0, wx.EXPAND, 0)
self.sizer_1.Add(self.panel_1, 1, wx.EXPAND, 0)
self.SetSizer(self.sizer_1)
+
+ def onMouseMove(self, event):
+ self.panel_1.SetFocus()