log.info('version : %s' % ConfigGlob.get('DEFAULT', 'version'))
print(size)
wx.Frame.__init__(self, parent, id, title, pos, size, style)
- #Font
- self.SetFont(wx.Font(12, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL))
+
# configuration
self.AppliPath = AppliPath
self.images_path = os.path.join(AppliPath,'images')
self._mgr = aui.AuiManager()
self._mgr.SetManagedWindow(self)
self.x = 0
+ #Font
+ try :
+ self.pref.read(self.ConfigPath['preferences'])
+ self.fontsize = self.pref.getint('iramuteq','fontsize')
+ except :
+ print('no pref : setting fontsize to 12')
+ self.fontsize = 12
+ self.SetFont(wx.Font(self.fontsize, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL))
+
#--------------------------------------------------------------------------------
# creation menu
#--------------------------------------------------------------------------------
Name("lefttree").
Caption(_("Historic")).
Left().
- MinSize(wx.Size(300,400)).
+ MinSize(wx.Size(200,400)).
+ BestSize(wx.Size(300,-1)).
Layer(1).
Position(1).
CloseButton(False).
# | aui.AUI_NB_TAB_EXTERNAL_MOVE | aui.AUI_NB_TAB_MOVE | aui.AUI_NB_TAB_FLOAT| wx.NO_BORDER
self.nb.SetAGWWindowStyleFlag(notebook_flags)
self.nb.SetArtProvider(aui.ChromeTabArt())
+ self.nb.SetFont(wx.Font(self.fontsize, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL))
#self.nb.SetArtProvider(aui.VC8TabArt())
#self.nb.parent = self
#self._notebook_style = aui.AUI_NB_DEFAULT_STYLE | aui.AUI_NB_TAB_EXTERNAL_MOVE | wx.NO_BORDER
aui.AuiPaneInfo().
Name("Tab_content").
CenterPane())
+
#self._mgr.AddPane(self.Sheet, wx.aui.AuiPaneInfo().Name("Data").CenterPane())
#self._mgr.AddPane(self.Sheet, aui.AuiPaneInfo().Name("Data").CenterPane())
self.nb.Bind(aui.EVT_AUINOTEBOOK_PAGE_CLOSE, self.OnCloseTab)
self.Text = ''
self.lexique = None
self.corpus = None
+
def finish_init(self) :
try :
from corpus import Corpus
from sheet import MySheet
from graph_to_json import GraphToJson
-from listlex2 import LexPanel
+#from listlex2 import LexPanel
import langue
# self.TabChdSim = wx.aui.AuiNotebook(self.parent.nb, -1, wx.DefaultPosition)
notebook_flags = aui.AUI_NB_DEFAULT_STYLE | aui.AUI_NB_TAB_EXTERNAL_MOVE | aui.AUI_NB_TAB_MOVE | aui.AUI_NB_TAB_FLOAT| wx.NO_BORDER
panel.TabChdSim = aui.AuiNotebook(panel, -1, wx.DefaultPosition)
- #panel.TabChdSim = LB.LabelBook(panel, -1, agwStyle = INB_TOP|INB_SHOW_ONLY_TEXT|INB_FIT_LABELTEXT)
+
+ #panel.TabChdSim = LB.LabelBook(panel, -1, agwStyle = INB_TOP|INB_SHOW_ONLY_TEXT|INB_FIT_LABELTEXT)
panel.TabChdSim.SetAGWWindowStyleFlag(notebook_flags)
panel.TabChdSim.SetArtProvider(aui.ChromeTabArt())
+ font = wx.Font(self.parent.fontsize, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL)
+ panel.TabChdSim.SetFont(font)
sizer1.Add(panel.TabChdSim,10, wx.EXPAND, 5)
panel.SetSizer(sizer1)
sizer1.Fit(panel)
self.tab_prof_seg = ProfListctrlPanel(self.parent, self, prof_seg[str(i + 1)], False, i + 1)
self.prof_seg_nb.AddPage(self.tab_prof_seg, _("Cluster") + ' %i' % (i + 1))
panel.ProfNB.SetSelection(0)
+ panel.ProfNB.SetFont(font)
if clnb > 2 :
self.TabAFC = aui.AuiNotebook(panel.TabChdSim, -1, wx.DefaultPosition)
log.info('read AFC')
def dolayout(self) :
self.tableau.read_tableau(self.pathout['analyse.db'])
TabCate = ElCategorizator(self.ira.nb, self.pathout, self.tableau)
+ TabCate.parametres = self.parametres
self.ira.nb.AddPage(TabCate, ' - '.join([_('ElCaTeGoRiZaToR'), self.parametres['name']]))
class SimiMatLayout(DefaultMatLayout) :