Changeset 999:e096a5638b87 for src/mlx/gui/delaycodes.py
- Timestamp:
- 07/04/19 18:54:23 (5 years ago)
- Branch:
- python3
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/delaycodes.py
r996 r999 198 198 self._viewport = self._createViewport() 199 199 self._viewport.add(self._eventBox) 200 self._viewport.set_shadow_type( SHADOW_NONE)200 self._viewport.set_shadow_type(Gtk.ShadowType.NONE) 201 201 202 202 self.pack_start(self._viewport, True, True, 0) … … 255 255 256 256 column = Gtk.TreeViewColumn("", Gtk.CellRendererText()) 257 column.set_sizing( TREE_VIEW_COLUMN_FIXED)257 column.set_sizing(Gtk.TreeViewColumnSizing.FIXED) 258 258 self._treeView.append_column(column) 259 259 260 260 for header in headers: 261 261 column = Gtk.TreeViewColumn(header, Gtk.CellRendererText()) 262 column.set_sizing( TREE_VIEW_COLUMN_FIXED)262 column.set_sizing(Gtk.TreeViewColumnSizing.FIXED) 263 263 self._treeView.append_column(column) 264 264 … … 283 283 alignment.add(label) 284 284 self._table.attach(alignment, 1, numColumns, i, i+1, 285 yoptions = FILL)285 yoptions = Gtk.AttachOptions.FILL) 286 286 self._table.set_row_spacing(i, 8) 287 287 elif type==DELAYCODE: … … 292 292 alignment.add(checkButton) 293 293 self._table.attach(alignment, 0, 1, i, i+1, 294 xoptions = FILL, yoptions = FILL) 294 xoptions = Gtk.AttachOptions.FILL, 295 yoptions = Gtk.AttachOptions.FILL) 295 296 if firstDelayCodeRow: 296 297 self._alignments.append(alignment) … … 302 303 xscale = 1.0) 303 304 alignment.add(label) 304 xoptions = FILL305 if j==(numColumns-2): xoptions |= EXPAND305 xoptions = Gtk.AttachOptions.FILL 306 if j==(numColumns-2): xoptions |= Gtk.AttachOptions.EXPAND 306 307 self._table.attach(alignment, j+1, j+2, i, i+1, 307 xoptions = xoptions, yoptions = FILL) 308 xoptions = xoptions, 309 yoptions = Gtk.AttachOptions.FILL) 308 310 if firstDelayCodeRow: 309 311 self._alignments.append(alignment)
Note:
See TracChangeset
for help on using the changeset viewer.