Changeset 268:9a90e1d8c5a2 for src/mlx/gui
- Timestamp:
- 07/01/12 17:38:25 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/callouts.py
r267 r268 85 85 # FIXME: common code until here, but note that some texts are different 86 86 87 fileBox = gtk.HBox()87 contentBox = gtk.HBox() 88 88 89 89 controlBox = gtk.VBox() … … 93 93 padding_left = 32, padding_right = 32) 94 94 controlAlignment.add(controlBox) 95 fileBox.pack_start(controlAlignment, False, False, 0)95 contentBox.pack_start(controlAlignment, False, False, 0) 96 96 97 97 self._addButton = gtk.Button(xstr("callouts_add")) … … 154 154 155 155 self._fileList.set_tooltip_column(2) 156 self._fileList.set_size_request(300, -1) 156 157 self._fileList.set_reorderable(False) 157 self._fileList.set_size_request(300, -1)158 158 selection = self._fileList.get_selection() 159 159 selection.set_mode(SELECTION_MULTIPLE) 160 160 selection.connect("changed", self._fileListSelectionChanged) 161 161 162 fileBox.pack_start(self._fileList, False, False, 4) 163 164 contentArea.pack_start(fileBox, True, True, 4) 165 166 self.set_size_request(400, 300) 162 scrolledWindow = gtk.ScrolledWindow() 163 scrolledWindow.add(self._fileList) 164 scrolledWindow.set_size_request(300, -1) 165 scrolledWindow.set_policy(POLICY_AUTOMATIC, POLICY_AUTOMATIC) 166 scrolledWindow.set_shadow_type(SHADOW_IN) 167 168 fileListAlignment = gtk.Alignment(xscale=1.0, yscale=1.0, 169 xalign=0.5, yalign=0.5) 170 fileListAlignment.set_padding(padding_top = 0, padding_bottom = 16, 171 padding_left = 0, padding_right = 8) 172 fileListAlignment.add(scrolledWindow) 173 174 contentBox.pack_start(fileListAlignment, False, False, 4) 175 176 contentArea.pack_start(contentBox, True, True, 4) 177 178 self.set_size_request(-1, 300) 167 179 168 180 def run(self): -
src/mlx/gui/checklist.py
r266 r268 149 149 self._fileList.set_tooltip_column(1) 150 150 self._fileList.set_reorderable(True) 151 self._fileList.set_size_request(200, -1)152 151 selection = self._fileList.get_selection() 153 152 selection.set_mode(SELECTION_MULTIPLE) 154 153 selection.connect("changed", self._fileListSelectionChanged) 155 154 156 fileBox.pack_start(self._fileList, False, False, 4) 155 scrolledWindow = gtk.ScrolledWindow() 156 scrolledWindow.add(self._fileList) 157 scrolledWindow.set_size_request(200, -1) 158 scrolledWindow.set_policy(POLICY_AUTOMATIC, POLICY_AUTOMATIC) 159 scrolledWindow.set_shadow_type(SHADOW_IN) 160 161 fileBox.pack_start(scrolledWindow, False, False, 4) 157 162 158 163 contentArea.pack_start(fileBox, True, True, 4)
Note:
See TracChangeset
for help on using the changeset viewer.