项目已经做得差不多了,有一部分代码可以给用户自定义执行不同的内容;
想做个根据流程图自动生成代码的工具,这样给到用户上手会比较容易。
形式和autocode-python差不多,python可以实现开发这个吗?最好用pyqt实现,别的不是那么熟系。
大们有什么宝贵的意见吗?
可尝试使用graphviv看看,这里有很多例子:
Examples — graphviz 0.17 documentation https://graphviz.readthedocs.io/en/stable/examples.html
import graphviz
dot = graphviz.Digraph(comment='demo')
dot.node('A', 'King Arthur')
dot.node('B', 'Sir Bedevere the Wise')
dot.node('C', 'Sir Peter')
dot.node('L', 'Sir Lancelot the Brave')
dot.edges(['AB', 'AL','BC','CL'])
#dot.edge('B','C',constraint='false')
print(dot.source)
dot.render('test-output/demo',format='png',view=True)