Hello,
try to learn more stuff, how to create userinterfaces?
import tkinter
def ende():
main.destroy()
main = tkinter.Tk()
b = tkinter.Button(main, text = "do not import .dwg", command = ende)
b.pack()
main.mainloop
which libraries do i need?
need i an “OUT = []”
KR
Andreas
Not sure about tkinter
But if you are trying to put up a button for Yes/No, then this might help:
Luckily, I made that Rhythm node. And it is long retired, so your version is WAAAAY old BTW.
That being said, it sounds like you want to return true or false depending on the Yes/No selection. Here is how to do that.
The python code in action:
[20200207-pythonUI]
and the actual code for copy pasta:
import clr
clr.AddReference("RevitAPIUI")
from Autodesk.Revit.UI import *
dialogContent = "You are about to delete all Fabrication Pipework content from the model. Are you sure?"
but…
1 Like
actually i would like to make somethink like a welcome button embedded in a costum node(dyf), with company logo, and links to tutorials, standards a.s.o. - thank you i will check!
You should check out the links here as they can provide some helpful tips on using Winforms in python.
1 Like