@@ -268,9 +268,9 @@ def __init__(self, metastep):
268268 self ._step_port_items = []
269269 self ._parameterised_pos = QtCore .QPointF (0 , 0 )
270270 self ._text = StepText (metastep .getStep ().getName (), self )
271- self ._updateTextIcon ()
271+ self ._update_text_icon ()
272272
273- self ._setToolTip ()
273+ self ._set_tool_tip ()
274274
275275 self .setFlag (QtWidgets .QGraphicsItem .GraphicsItemFlag .ItemIsMovable )
276276 self .setFlag (QtWidgets .QGraphicsItem .GraphicsItemFlag .ItemSendsGeometryChanges )
@@ -290,42 +290,42 @@ def __init__(self, metastep):
290290 self ._contextMenu .addSeparator ()
291291 self ._contextMenu .addAction (deleteAction )
292292
293- self ._updatePorts ()
293+ self ._update_ports ()
294294
295295 self ._configure_item = ConfigureIcon (self )
296- self ._configure_item .moveBy (40 , 40 )
296+ self ._configure_item .moveBy (0.625 * self . Size , 0.625 * self . Size )
297297
298- self ._updateConfigureIcon ()
298+ self ._update_configure_icon ()
299299
300300 self ._modified_item = MercurialIcon (self )
301301 self ._modified_item .moveBy (5 , 40 )
302302
303303 self .updateDVCSIcon ()
304304
305305 def update (self ):
306- self ._updateConfigureIcon ()
307- self ._updatePorts ()
308- self ._updateTextIcon ()
306+ self ._update_configure_icon ()
307+ self ._update_ports ()
308+ self ._update_text_icon ()
309309 super (Node , self ).update ()
310310
311- def _updateTextIcon (self ):
311+ def _update_text_icon (self ):
312312 # Set text position
313313 br = self ._text .boundingRect ()
314314 x_pos = self .Size / 2 - br .width () / 2
315315 y_pos = self .Size + 5
316316 self ._text .setPos (x_pos , y_pos )
317317
318- def _updateConfigureIcon (self ):
318+ def _update_configure_icon (self ):
319319 self ._configure_item .setConfigured (self ._metastep .getStep ().isConfigured ())
320- self ._setToolTip ()
320+ self ._set_tool_tip ()
321321
322- def _setToolTip (self ):
322+ def _set_tool_tip (self ):
323323 self .setToolTip (self ._metastep ._step .getName () + ": " + self ._metastep ._step .getIdentifier ())
324324 self ._text .setText (
325325 self ._metastep .getStepIdentifier () if self ._metastep .getStepIdentifier () != self ._metastep .getUniqueIdentifier () else self ._metastep .getName ())
326- self ._updateTextIcon ()
326+ self ._update_text_icon ()
327327
328- def _updatePorts (self ):
328+ def _update_ports (self ):
329329 previous_step_ports = {}
330330 current_step_ports = self ._metastep ._step ._ports
331331 for p in self ._step_port_items :
0 commit comments