-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpinout_generator_result.py
88 lines (54 loc) · 3.29 KB
/
pinout_generator_result.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################
import wx
import wx.xrc
###########################################################################
## Class PinoutDialog
###########################################################################
class PinoutDialog ( wx.Dialog ):
def __init__( self, parent ):
wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = u"Pinout result", pos = wx.DefaultPosition, size = wx.Size( 500,500 ), style = wx.DEFAULT_DIALOG_STYLE )
self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )
gbSizer1 = wx.GridBagSizer( 0, 0 )
gbSizer1.SetFlexibleDirection( wx.BOTH )
gbSizer1.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )
self.result = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, wx.TE_MULTILINE|wx.TE_READONLY|wx.VSCROLL )
self.result.SetFont( wx.Font( 10, wx.FONTFAMILY_TELETYPE, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "Monospace" ) )
self.result.SetToolTip( u"Result (copy-paste this)" )
gbSizer1.Add( self.result, wx.GBPosition( 0, 0 ), wx.GBSpan( 1, 1 ), wx.ALL|wx.EXPAND, 5 )
bSizer2 = wx.BoxSizer( wx.VERTICAL )
bSizer4 = wx.BoxSizer( wx.HORIZONTAL )
self.m_staticText11 = wx.StaticText( self, wx.ID_ANY, u"Select output format", wx.DefaultPosition, wx.DefaultSize, 0 )
self.m_staticText11.Wrap( -1 )
bSizer4.Add( self.m_staticText11, 0, wx.ALIGN_CENTER|wx.ALL, 5 )
output_formatChoices = [ u"List", u"CSV", u"HTML table", u"Markdown table", u"C/C++ code (#define)", u"C/C++ code (enum)", u"Python (dict)", u"WireViz ", u"FPGA (XDC format)", u"FPGA (PDC format)" ]
self.output_format = wx.Choice( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, output_formatChoices, 0 )
self.output_format.SetSelection( 0 )
bSizer4.Add( self.output_format, 0, wx.ALL, 5 )
bSizer2.Add( bSizer4, 1, wx.EXPAND, 5 )
self.pinNameCB = wx.CheckBox( self, wx.ID_ANY, u"Use pin name instead of number (C/Python)", wx.DefaultPosition, wx.DefaultSize, 0 )
self.pinNameCB.Enable( False )
bSizer2.Add( self.pinNameCB, 0, wx.ALL, 5 )
bSizer3 = wx.BoxSizer( wx.HORIZONTAL )
self.m_staticText111 = wx.StaticText( self, wx.ID_ANY, u"Pin name prefix filter", wx.DefaultPosition, wx.DefaultSize, 0 )
self.m_staticText111.Wrap( -1 )
bSizer3.Add( self.m_staticText111, 0, wx.ALIGN_CENTER|wx.ALL, 5 )
self.pinNameFilter = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
self.pinNameFilter.SetFont( wx.Font( 10, wx.FONTFAMILY_TELETYPE, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, "Monospace" ) )
self.pinNameFilter.Enable( False )
self.pinNameFilter.SetToolTip( u"E.g. if the pin name is \"GPIO36\", setting the filter to \"GPIO\" will output \"36\"" )
bSizer3.Add( self.pinNameFilter, 0, wx.ALL|wx.EXPAND, 5 )
bSizer2.Add( bSizer3, 1, wx.EXPAND, 5 )
gbSizer1.Add( bSizer2, wx.GBPosition( 1, 0 ), wx.GBSpan( 1, 1 ), wx.EXPAND, 5 )
gbSizer1.AddGrowableCol( 0 )
gbSizer1.AddGrowableRow( 0 )
self.SetSizer( gbSizer1 )
self.Layout()
self.Centre( wx.BOTH )
def __del__( self ):
pass