Changeset d8161f2 in sasview for src/sas/sasgui


Ignore:
Timestamp:
Mar 25, 2017 3:56:07 PM (7 years ago)
Author:
ajj
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
e11ee1d
Parents:
29e2665
Message:

Fixing up the acknowledgment box

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/acknowledgebox.py

    rc1fdf84 rd8161f2  
    1111import wx.richtext 
    1212import wx.lib.hyperlink 
     13from wx.lib.expando import ExpandoTextCtrl 
    1314import random 
    1415import os.path 
     
    4445        wx.Dialog.__init__(self, *args, **kwds) 
    4546 
    46         self.ack = wx.TextCtrl(self, style=wx.TE_LEFT|wx.TE_MULTILINE|wx.TE_BESTWRAP|wx.TE_READONLY|wx.TE_NO_VSCROLL) 
     47        self.ack = ExpandoTextCtrl(self, style=wx.TE_LEFT|wx.TE_MULTILINE|wx.TE_BESTWRAP|wx.TE_READONLY|wx.TE_NO_VSCROLL) 
    4748        self.ack.SetValue(config._acknowledgement_publications) 
    48         self.ack.SetMinSize((-1, 55)) 
     49        #self.ack.SetMinSize((-1, 55)) 
     50        self.citation = ExpandoTextCtrl(self, style=wx.TE_LEFT|wx.TE_MULTILINE|wx.TE_BESTWRAP|wx.TE_READONLY|wx.TE_NO_VSCROLL) 
     51        self.citation.SetValue(config._acknowledgement_citation) 
    4952        self.preamble = wx.StaticText(self, -1, config._acknowledgement_preamble) 
    5053        items = [config._acknowledgement_preamble_bullet1, 
     
    8184        sizer_titles.Add(self.preamble, 0, wx.ALL|wx.EXPAND, 5) 
    8285        sizer_titles.Add(self.list1, 0, wx.ALL|wx.EXPAND, 5) 
     86        sizer_titles.Add(self.ack, 0, wx.ALL|wx.EXPAND, 5) 
    8387        sizer_titles.Add(self.list2, 0, wx.ALL|wx.EXPAND, 5) 
     88        sizer_titles.Add(self.citation, 0, wx.ALL|wx.EXPAND, 5) 
    8489        sizer_titles.Add(self.list3, 0, wx.ALL|wx.EXPAND, 5) 
     90        #sizer_titles.Add(self.static_line, 0, wx.ALL|wx.EXPAND, 0) 
    8591        sizer_titles.Add(self.list4, 0, wx.ALL|wx.EXPAND, 5) 
    86         sizer_titles.Add(self.static_line, 0, wx.ALL|wx.EXPAND, 0) 
    87         sizer_titles.Add(self.ack, 0, wx.ALL|wx.EXPAND, 5) 
    8892        sizer_main.Add(sizer_titles, -1, wx.ALL|wx.EXPAND, 5) 
    8993        self.SetAutoLayout(True) 
Note: See TracChangeset for help on using the changeset viewer.