FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
CadPythonShell/Script Examples/ironpython2.7/showdialog.py at dev · chuongmep/CadPythonShell · GitHub
chuongmep
/
CadPythonShell
Public
Notifications
You must be signed in to change notification settings
Fork
23
Star
119
Code
Issues
3
Pull requests
0
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
CadPythonShell
/
Script Examples
/
ironpython2.7
/
showdialog.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
51 lines (40 loc) · 1.66 KB
Breadcrumbs
CadPythonShell
/
Script Examples
/
ironpython2.7
/
showdialog.py
Copy path
File metadata and controls
51 lines (40 loc) · 1.66 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import
sys
import
clr
# Add Assemblies for AutoCAD
clr
.
AddReference
(
'AcMgd'
)
clr
.
AddReference
(
'AcCoreMgd'
)
clr
.
AddReference
(
'AcDbMgd'
)
clr
.
AddReference
(
'AdWindows'
)
# Import references from AutoCAD
from
Autodesk
.
AutoCAD
.
Runtime
import
*
from
Autodesk
.
AutoCAD
.
ApplicationServices
import
*
from
Autodesk
.
AutoCAD
.
EditorInput
import
*
from
Autodesk
.
Windows
import
*
adoc
=
Application
.
DocumentManager
.
MdiActiveDocument
ed
=
adoc
.
Editor
td
=
TaskDialog
()
td
.
WindowTitle
=
"The title"
td
.
MainInstruction
=
"Something has happened."
td
.
ContentText
=
"Here's some text, with a "
+
"<A HREF=
\"
http://adn.autodesk.com
\"
>"
+
"link to the ADN site</A>"
td
.
VerificationText
=
"Verification text"
td
.
FooterText
=
"The footer with a "
+
"<A HREF=
\"
http://blogs.autodesk.com/through"
+
"-the-interface
\"
>link to Kean's blog</A>"
td
.
EnableHyperlinks
=
True
td
.
EnableVerificationHandler
=
True
td
.
CollapsedControlText
=
"This control can be collapsed."
td
.
ExpandedText
=
"This control can be expanded..."
+
"
\n
to multiple lines."
td
.
ExpandFooterArea
=
True
td
.
ExpandedByDefault
=
False
td
.
MainIcon
=
TaskDialogIcon
.
Shield
td
.
FooterIcon
=
TaskDialogIcon
.
Information
td
.
UseCommandLinks
=
True
td
.
Buttons
.
Add
(
TaskDialogButton
(
1
,
"This is one course of action."
))
td
.
Buttons
.
Add
(
TaskDialogButton
(
2
,
"This is another course of action."
))
td
.
Buttons
.
Add
(
TaskDialogButton
(
3
,
"And would you believe we have a third!"
))
td
.
DefaultButton
=
3
td
.
RadioButtons
.
Add
(
TaskDialogButton
(
4
,
"Yes"
))
td
.
RadioButtons
.
Add
(
TaskDialogButton
(
5
,
"No"
))
td
.
RadioButtons
.
Add
(
TaskDialogButton
(
6
,
"Maybe"
))
td
.
DefaultRadioButton
=
5
td
.
AllowDialogCancellation
=
False
"Need help with the Callback here"
td
.
Show
(
Application
.
MainWindow
.
Handle
)
Back
|
FazBrowse Home
|
New Git URL