self.materialHyperlink = wx.HyperlinkCtrl(self.printMaterialPanel, -1, label=_('Click here for more!'), url='',
style=wx.HL_ALIGN_LEFT|wx.BORDER_NONE|wx.HL_CONTEXTMENU)
self.materialHyperlink.Show(False)
+ #self.materialDescription = wx.TextCtrl(self.printMaterialPanel, -1, '', style=wx.TE_MULTILINE|wx.TE_READONLY|wx.TE_NO_VSCROLL)
+ self.materialDescription = wx.StaticText(self.printMaterialPanel, -1, '')
+ self.materialDescription.Show(False)
+ boxsizer.Add(self.materialDescription, border=5, flag=wx.BOTTOM|wx.TOP|wx.EXPAND)
boxsizer.Add(self.materialHyperlink, border=5, flag=wx.BOTTOM|wx.TOP|wx.EXPAND)
sizer.Add(self.printMaterialPanel, (1,0), border=10, flag=wx.EXPAND|wx.RIGHT|wx.LEFT|wx.TOP)
if material.url:
self.materialHyperlink.SetURL(material.url)
self.materialHyperlink.Show(material.url is not None)
+ if material.description:
+ #self.materialDescription.SetValue(material.description)
+ self.materialDescription.SetLabel(material.description)
+ self.materialDescription.Show(material.description is not None)
+ self.materialDescription.Layout()
+ self.materialDescription.GetParent().Fit()
+ self.materialDescription.GetParent().Layout()
# Add new profiles
selectedProfile = None
if types != None:
for type in types.split('|'):
self.types.append(type.strip())
+ # Comment for the profile
+ self.description = self._getProfileInfo(ini_file, 'description')
+
self.parseDirectory(self.path)
def parseDirectory(self, path):