-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests to be runnable from Imaris.
- Loading branch information
Showing
4 changed files
with
29 additions
and
503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
# Hello World! XT example | ||
# | ||
# <CustomTools> | ||
# <Menu> | ||
# <Submenu name="ImarisXT course"> | ||
# <Item name="Hello World!" icon="Python"> | ||
# <Command>PythonXT::HelloWorldXT(#i)</Command> | ||
# </Item> | ||
# </Submenu> | ||
# </Menu> | ||
# <Menu> | ||
# <Item name="pIceImarisConnector: Test Hello World!" icon="Python3" tooltip="Test function for pIceImarisConnector."> | ||
# <Command>Python3XT::HelloWorldXT(%i)</Command> | ||
# </Item> | ||
# </Menu> | ||
# </CustomTools> | ||
|
||
from pIceImarisConnector import pIceImarisConnector | ||
import Tkinter | ||
import tkinter | ||
import time | ||
|
||
def HelloWorldXT(aImarisId): | ||
|
||
# Instantiate an IceImarisConnector object | ||
conn = pIceImarisConnector(aImarisId) | ||
|
||
# Display version info in a dialog | ||
top = Tkinter.Tk() | ||
top = tkinter.Tk() | ||
top.title("Hello World!") | ||
l = Tkinter.Label(top, | ||
l = tkinter.Label(top, | ||
text = '... from pIceImarisConnector ' + conn.version + | ||
' and ' + conn.mImarisApplication.GetVersion()) | ||
l.pack() | ||
top.mainloop() | ||
|
||
time.sleep(5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.