Changeset 433:340267206759 for src/mlx/gui
- Timestamp:
- 02/20/13 16:23:16 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/common.py
r401 r433 73 73 74 74 SHADOW_IN = gtk.SHADOW_IN 75 SHADOW_NONE = gtk.SHADOW_NONE 75 76 76 77 POLICY_AUTOMATIC = gtk.POLICY_AUTOMATIC … … 86 87 87 88 EVENT_BUTTON_PRESS = gdk.BUTTON_PRESS 89 90 TREE_VIEW_COLUMN_FIXED = gtk.TREE_VIEW_COLUMN_FIXED 88 91 89 92 pixbuf_new_from_file = gdk.pixbuf_new_from_file … … 139 142 140 143 SHADOW_IN = gtk.ShadowType.IN 144 SHADOW_NONE = gtk.ShadowType.NONE 141 145 142 146 POLICY_AUTOMATIC = gtk.PolicyType.AUTOMATIC … … 152 156 153 157 EVENT_BUTTON_PRESS = gdk.EventType.BUTTON_PRESS 158 159 TREE_VIEW_COLUMN_FIXED = gtk.TreeViewColumnSizing.FIXED 154 160 155 161 pixbuf_new_from_file = gdkPixbuf.Pixbuf.new_from_file -
src/mlx/gui/info.py
r349 r433 1 1 2 2 from common import * 3 4 from mlx.gui.delaycodes import DelayCodeTable 3 5 4 6 from mlx.i18n import xstr … … 98 100 padding_left = 8, padding_right = 8) 99 101 100 self._delayTable = table = gtk.Table(5, 2)101 table.set_col_spacings(16)102 102 103 row = 0104 column = 0103 # self._delayTable = table = gtk.Table(5, 2) 104 # table.set_col_spacings(16) 105 105 106 self._delayCodeWidgets = [] 107 for (_code, label) in FlightInfo._delayCodes(): 108 button = gtk.CheckButton(label) 109 button.set_use_underline(True) 110 table.attach(button, column, column + 1, row, row + 1) 111 self._delayCodeWidgets.append(button) 112 if column==0: 113 column += 1 114 else: 115 row += 1 116 column = 0 106 # row = 0 107 # column = 0 117 108 118 alignment.add(table) 109 # self._delayCodeWidgets = [] 110 # for (_code, label) in FlightInfo._delayCodes(): 111 # button = gtk.CheckButton(label) 112 # button.set_use_underline(True) 113 # table.attach(button, column, column + 1, row, row + 1) 114 # self._delayCodeWidgets.append(button) 115 # if column==0: 116 # column += 1 117 # else: 118 # row += 1 119 # column = 0 120 self._delayTable = table = DelayCodeTable() 121 self._delayWindow = scrolledWindow = gtk.ScrolledWindow() 122 scrolledWindow.add(table) 123 scrolledWindow.set_size_request(400, 150) 124 scrolledWindow.set_policy(gtk.PolicyType.ALWAYS if pygobject 125 else gtk.POLICY_AUTOMATIC, 126 gtk.PolicyType.ALWAYS if pygobject 127 else gtk.POLICY_AUTOMATIC) 128 scrolledWindow.set_shadow_type(gtk.ShadowType.IN if pygobject 129 else gtk.SHADOW_IN) 130 131 alignment.add(scrolledWindow) 119 132 frame.add(alignment) 120 133 … … 158 171 self._comments.set_sensitive(True) 159 172 self._flightDefects.set_sensitive(True) 160 self._delay Table.set_sensitive(True)173 self._delayWindow.set_sensitive(True) 161 174 162 175 def disable(self): … … 164 177 self._comments.set_sensitive(False) 165 178 self._flightDefects.set_sensitive(False) 166 self._delay Table.set_sensitive(False)179 self._delayWindow.set_sensitive(False) 167 180 168 181 def reset(self):
Note:
See TracChangeset
for help on using the changeset viewer.