equal
deleted
inserted
replaced
22 # You should have received a copy of the GNU General Public License |
22 # You should have received a copy of the GNU General Public License |
23 # along with this program; if not, write to the Free Software |
23 # along with this program; if not, write to the Free Software |
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
25 |
25 |
26 |
26 |
27 from __future__ import absolute_import |
27 |
28 import wx |
28 import wx |
29 |
29 |
30 from graphics.GraphicCommons import LEFTRAIL, RIGHTRAIL |
30 from graphics.GraphicCommons import LEFTRAIL, RIGHTRAIL |
31 from graphics.LD_Objects import LD_PowerRail |
31 from graphics.LD_Objects import LD_PowerRail |
32 from dialogs.BlockPreviewDialog import BlockPreviewDialog |
32 from dialogs.BlockPreviewDialog import BlockPreviewDialog |
116 """ |
116 """ |
117 Set default power rail parameters |
117 Set default power rail parameters |
118 @param values: Power rail parameters values |
118 @param values: Power rail parameters values |
119 """ |
119 """ |
120 # For each parameters defined, set corresponding control value |
120 # For each parameters defined, set corresponding control value |
121 for name, value in values.items(): |
121 for name, value in list(values.items()): |
122 |
122 |
123 # Parameter is power rail type |
123 # Parameter is power rail type |
124 if name == "type": |
124 if name == "type": |
125 self.TypeRadioButtons[value].SetValue(True) |
125 self.TypeRadioButtons[value].SetValue(True) |
126 |
126 |