MCPcopy
hub / github.com/scottbez1/splitflap / Int

Class Int

thirdparty/panelize.py:170–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169
170class Int( KicadObj ):
171
172 def __init__( self, name, value=None ):
173 KicadObj.__init__( self, name )
174 self.value = value
175
176 def tag_value( self, factory, value ):
177 self.value = int(value)
178
179 def clone( self ):
180 return Int( self.obj_name, self.value )
181
182 def is_set( self ):
183 return self.value != None
184
185 def write_contents( self, writer ):
186 writer.write_int( self.value )
187
188 def __str__( self ):
189 if self.value == None:
190 return "<<<NONE>>>"
191 return "%d" % self.value
192
193
194class Float( KicadObj ):

Callers 12

cloneMethod · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
netMethod · 0.85
draw_lineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected