當前位置: 首頁>>代碼示例>>Python>>正文


Python Flowchart.removeNode方法代碼示例

本文整理匯總了Python中pyqtgraph.flowchart.Flowchart.removeNode方法的典型用法代碼示例。如果您正苦於以下問題:Python Flowchart.removeNode方法的具體用法?Python Flowchart.removeNode怎麽用?Python Flowchart.removeNode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在pyqtgraph.flowchart.Flowchart的用法示例。


在下文中一共展示了Flowchart.removeNode方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: ControllerWidget

# 需要導入模塊: from pyqtgraph.flowchart import Flowchart [as 別名]
# 或者: from pyqtgraph.flowchart.Flowchart import removeNode [as 別名]
controller_w = ControllerWidget()
controller.addWidget(controller_w)

#####################################
# Create Flow Chart and components
#####################################

# Create flowchart, define input/output terminals
fc = Flowchart(terminals={
    #'sigOut': {'io': 'in'},
    #'sigOut2': {'io': 'in'}#,
    #'sigIn': {'io': 'out'}  #We don't currently need any outputs from FC
}, name='Connections')

# Remove the unnecessary input and output nodes
fc.removeNode(fc.inputNode)
fc.removeNode(fc.outputNode)

flowchart = fc.widget()
d3.addWidget(flowchart)
flowchart_dock.addWidget(fc.widget().chartWidget)

#Register own node types
fclib.registerNodeType(OscilloscopeNode, [('SciEdu',)])
fclib.registerNodeType(FilterNode, [('SciEdu',)])
fclib.registerNodeType(CharToBinaryNode, [('SciEdu',)])
# fclib.registerNodeType(BinaryToCharNode, [('SciEdu',)]) # TODO
fclib.registerNodeType(ParityNode, [('SciEdu',)])
fclib.registerNodeType(CheckParityNode, [('SciEdu',)])
fclib.registerNodeType(FFTNode, [('SciEdu',)])
fclib.registerNodeType(SigGenNode, [('SciEdu',)])
開發者ID:adikele,項目名稱:SciEdu-Nodes-Simulator,代碼行數:33,代碼來源:sciedu.py


注:本文中的pyqtgraph.flowchart.Flowchart.removeNode方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。