Ignore:
Timestamp:
May 2, 2017 1:58:01 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
d66dbcc
Parents:
74d9780 (diff), 658dd57 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge with master

File:
1 edited

Legend:

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

    refe730d r914ba0a  
    88__revision__ = "$Revision: 1193 $" 
    99 
    10 import os 
    11  
    1210import wx 
    1311import wx.richtext 
    1412import wx.lib.hyperlink 
     13from wx.lib.expando import ExpandoTextCtrl 
    1514 
    1615from sas.sasgui import get_local_config 
     
    2322    Shows the current method for acknowledging SasView in 
    2423    scholarly publications. 
    25  
    2624    """ 
    2725 
     
    3129        wx.Dialog.__init__(self, *args, **kwds) 
    3230 
    33         self.ack = wx.TextCtrl(self, style=wx.TE_LEFT|wx.TE_MULTILINE|wx.TE_BESTWRAP|wx.TE_READONLY|wx.TE_NO_VSCROLL) 
     31        self.ack = ExpandoTextCtrl(self, style=wx.TE_LEFT|wx.TE_MULTILINE|wx.TE_BESTWRAP|wx.TE_READONLY|wx.TE_NO_VSCROLL) 
    3432        self.ack.SetValue(config._acknowledgement_publications) 
    35         self.ack.SetMinSize((-1, 55)) 
     33        #self.ack.SetMinSize((-1, 55)) 
     34        self.citation = ExpandoTextCtrl(self, style=wx.TE_LEFT|wx.TE_MULTILINE|wx.TE_BESTWRAP|wx.TE_READONLY|wx.TE_NO_VSCROLL) 
     35        self.citation.SetValue(config._acknowledgement_citation) 
    3636        self.preamble = wx.StaticText(self, -1, config._acknowledgement_preamble) 
    3737        items = [config._acknowledgement_preamble_bullet1, 
     
    3939                 config._acknowledgement_preamble_bullet3, 
    4040                 config._acknowledgement_preamble_bullet4] 
    41         self.list1 = wx.StaticText(self, -1, "\t(1) " + items[0]) 
    42         self.list2 = wx.StaticText(self, -1, "\t(2) " + items[1]) 
    43         self.list3 = wx.StaticText(self, -1, "\t(3) " + items[2]) 
    44         self.list4 = wx.StaticText(self, -1, "\t(4) " + items[3]) 
     41        self.list1 = wx.StaticText(self, -1, "(1) " + items[0]) 
     42        self.list2 = wx.StaticText(self, -1, "(2) " + items[1]) 
     43        self.list3 = wx.StaticText(self, -1, "(3) " + items[2]) 
     44        self.list4 = wx.StaticText(self, -1, "(4) " + items[3]) 
    4545        self.static_line = wx.StaticLine(self, 0) 
    4646        self.__set_properties() 
     
    5555        self.preamble.SetFont(wx.Font(10, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "")) 
    5656        self.SetTitle("Acknowledging SasView") 
    57         self.SetSize((525, 225)) 
     57        #Increased size of box from (525, 225), SMK, 04/10/16 
     58        self.SetClientSize((600, 320)) 
    5859        # end wxGlade 
    5960 
     
    6768        sizer_titles.Add(self.preamble, 0, wx.ALL|wx.EXPAND, 5) 
    6869        sizer_titles.Add(self.list1, 0, wx.ALL|wx.EXPAND, 5) 
     70        sizer_titles.Add(self.ack, 0, wx.ALL|wx.EXPAND, 5) 
    6971        sizer_titles.Add(self.list2, 0, wx.ALL|wx.EXPAND, 5) 
     72        sizer_titles.Add(self.citation, 0, wx.ALL|wx.EXPAND, 5) 
    7073        sizer_titles.Add(self.list3, 0, wx.ALL|wx.EXPAND, 5) 
     74        #sizer_titles.Add(self.static_line, 0, wx.ALL|wx.EXPAND, 0) 
    7175        sizer_titles.Add(self.list4, 0, wx.ALL|wx.EXPAND, 5) 
    72         sizer_titles.Add(self.static_line, 0, wx.ALL|wx.EXPAND, 0) 
    73         sizer_titles.Add(self.ack, 0, wx.ALL|wx.EXPAND, 5) 
    7476        sizer_main.Add(sizer_titles, -1, wx.ALL|wx.EXPAND, 5) 
    7577        self.SetAutoLayout(True) 
     
    7779        self.Layout() 
    7880        self.Centre() 
     81        #self.SetClientSize(sizer_main.GetSize()) 
    7982        # end wxGlade 
    8083 
Note: See TracChangeset for help on using the changeset viewer.