Changeset b618b7f in sasview for sansguiframe
- Timestamp:
- Jun 28, 2012 9:02:34 AM (12 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- d87e533
- Parents:
- ce3feca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/local_perspectives/plotting/appearanceDialog.py
rf8be87d rb618b7f 3 3 """ 4 4 5 Appearance of graph symbols and legend label dialog.5 Dialog for appearance of plot symbols, color, size etc. 6 6 7 7 … … 27 27 28 28 def __init__(self,parent,title): 29 super(appearanceDialog,self).__init__(parent, title=title,size=(570,4 00))29 super(appearanceDialog,self).__init__(parent, title=title,size=(570,430)) 30 30 31 31 self.okay_clicked = False … … 75 75 self.sizeCustomButton = wx.Button(panel, label='Custom...') 76 76 self.sizeCustomButton.Bind(wx.EVT_BUTTON, self.customSize) 77 self.labelTextBox = wx.TextCtrl(panel,-1, "",size=( 180,-1))77 self.labelTextBox = wx.TextCtrl(panel,-1, "",size=(-1,-1)) 78 78 79 79 # buttons … … 84 84 85 85 # now Add all the widgets to relevant spacer - tricky 86 ivbox1.Add(symbolText, flag = wx.TOP | wx.LEFT | wx.ALIGN_LEFT ,border=10) 87 ivbox1.Add(self.symbolListBox, flag = wx.TOP | wx.LEFT | wx.ALIGN_LEFT ,border=10) 88 89 ihbox1.Add(sizeText, flag = wx.TOP | wx.LEFT | wx.ALIGN_LEFT , border=10) 90 ihbox1.Add((20,-1)) 91 ihbox1.Add(self.sizeComboBox, flag = wx.TOP | wx.LEFT | wx.ALIGN_LEFT , border=10) 92 ihbox1.Add((20,-1)) 93 ihbox1.Add(self.sizeCustomButton, flag = wx.ALIGN_LEFT | wx.TOP, border=10) 94 95 ihbox2.Add(colorText,flag = wx.TOP | wx.LEFT | wx.ALIGN_LEFT, border=10) 96 ihbox2.Add((20,-1)) 97 ihbox2.Add(self.colorListBox, flag = wx.TOP | wx.LEFT | wx.ALIGN_LEFT, border=10) 98 99 100 101 ivbox2.Add(ihbox1, flag = wx.TOP | wx.ALIGN_RIGHT,border=10) 102 ivbox2.Add(ihbox2, flag = wx.TOP | wx.ALIGN_RIGHT,border=10) 86 ivbox1.Add(symbolText, flag = wx.ALL | wx.ALIGN_LEFT ,border=10) 87 ivbox1.Add(self.symbolListBox, flag = wx.ALL | wx.ALIGN_LEFT ,border=10) 88 89 ihbox1.Add(sizeText, flag = wx.ALL| wx.ALIGN_LEFT , border=10) 90 ihbox1.Add(self.sizeComboBox, flag = wx.ALL | wx.ALIGN_LEFT , border=10) 91 ihbox1.Add(self.sizeCustomButton, flag = wx.ALIGN_LEFT | wx.ALL, border=10) 92 93 ihbox2.Add(colorText,flag = wx.ALL | wx.ALIGN_LEFT, border=10) 94 ihbox2.Add(self.colorListBox, flag = wx.ALL | wx.ALIGN_LEFT, border=10) 95 96 97 98 ivbox2.Add(ihbox1, flag = wx.ALL | wx.ALIGN_RIGHT,border=10) 99 ivbox2.Add(ihbox2, flag = wx.ALL | wx.ALIGN_RIGHT,border=10) 103 100 104 101 105 hbox1.Add((5,-1))106 102 hbox1.Add(ivbox1,flag = wx.EXPAND | wx.ALIGN_LEFT ,border=10) 107 hbox1.Add((5,-1))108 103 hbox1.Add(ivbox2,flag = wx.EXPAND | wx.ALIGN_RIGHT ,border=10) 109 hbox1.Add((5,-1))110 104 111 105 112 hbox2.Add(OkButton, flag = wx.RIGHT | wx.ALIGN_RIGHT, border=10) 113 hbox2.Add(cancelButton, flag = wx.RIGHT | wx.ALIGN_RIGHT, border=10) 114 115 hbox3.Add(labelText, flag= wx.TOP | wx.LEFT | wx.ALIGN_LEFT, border=10) 116 hbox3.Add((20,-1)) 117 hbox3.Add(self.labelTextBox, wx.TOP |wx.ALIGN_LEFT | wx.LEFT , border=10) 118 hbox3.Add((20,-1)) 106 hbox2.Add(OkButton, flag = wx.ALL | wx.ALIGN_RIGHT, border=10) 107 hbox2.Add(cancelButton, flag = wx.ALL | wx.ALIGN_RIGHT, border=10) 108 109 hbox3.Add(labelText, flag= wx.EXPAND | wx.ALL | wx.ALIGN_LEFT, border=10) 110 hbox3.Add(self.labelTextBox, wx.EXPAND | wx.ALL |wx.ALIGN_LEFT , border=10) 119 111 120 vbox.Add((20,-1)) 121 symbolStaticBoxSizer.Add(hbox1,flag = wx.TOP | wx.EXPAND,border=10) 122 vbox.Add(symbolStaticBoxSizer, flag = wx.TOP | wx.EXPAND,border=10) 123 124 vbox.Add((-1,20)) 125 vbox.Add(hbox3,flag = wx.BOTTOM | wx.ALIGN_RIGHT, border=20) 126 127 128 vbox.Add(hbox2,flag = wx.BOTTOM | wx.ALIGN_RIGHT, border=20) 112 symbolStaticBoxSizer.Add(hbox1,flag = wx.ALL | wx.EXPAND,border=10) 113 vbox.Add(symbolStaticBoxSizer, flag = wx.ALL | wx.EXPAND,border=10) 114 115 vbox.Add(hbox3,flag = wx.ALL | wx.EXPAND | wx.ALIGN_RIGHT, border=10) 116 117 118 vbox.Add(hbox2,flag = wx.ALL | wx.ALIGN_RIGHT, border=10) 129 119 130 120
Note: See TracChangeset
for help on using the changeset viewer.