Changeset 914ba0a in sasview for src/sas/sasgui/guiframe/acknowledgebox.py
- Timestamp:
- May 2, 2017 1:58:01 PM (7 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/acknowledgebox.py
refe730d r914ba0a 8 8 __revision__ = "$Revision: 1193 $" 9 9 10 import os11 12 10 import wx 13 11 import wx.richtext 14 12 import wx.lib.hyperlink 13 from wx.lib.expando import ExpandoTextCtrl 15 14 16 15 from sas.sasgui import get_local_config … … 23 22 Shows the current method for acknowledging SasView in 24 23 scholarly publications. 25 26 24 """ 27 25 … … 31 29 wx.Dialog.__init__(self, *args, **kwds) 32 30 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) 34 32 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) 36 36 self.preamble = wx.StaticText(self, -1, config._acknowledgement_preamble) 37 37 items = [config._acknowledgement_preamble_bullet1, … … 39 39 config._acknowledgement_preamble_bullet3, 40 40 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]) 45 45 self.static_line = wx.StaticLine(self, 0) 46 46 self.__set_properties() … … 55 55 self.preamble.SetFont(wx.Font(10, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "")) 56 56 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)) 58 59 # end wxGlade 59 60 … … 67 68 sizer_titles.Add(self.preamble, 0, wx.ALL|wx.EXPAND, 5) 68 69 sizer_titles.Add(self.list1, 0, wx.ALL|wx.EXPAND, 5) 70 sizer_titles.Add(self.ack, 0, wx.ALL|wx.EXPAND, 5) 69 71 sizer_titles.Add(self.list2, 0, wx.ALL|wx.EXPAND, 5) 72 sizer_titles.Add(self.citation, 0, wx.ALL|wx.EXPAND, 5) 70 73 sizer_titles.Add(self.list3, 0, wx.ALL|wx.EXPAND, 5) 74 #sizer_titles.Add(self.static_line, 0, wx.ALL|wx.EXPAND, 0) 71 75 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)74 76 sizer_main.Add(sizer_titles, -1, wx.ALL|wx.EXPAND, 5) 75 77 self.SetAutoLayout(True) … … 77 79 self.Layout() 78 80 self.Centre() 81 #self.SetClientSize(sizer_main.GetSize()) 79 82 # end wxGlade 80 83
Note: See TracChangeset
for help on using the changeset viewer.