From b122829ce25f17fcaf9f680383796af686d2da84 Mon Sep 17 00:00:00 2001 From: Gregory Jefferis Date: Fri, 17 Apr 2015 00:15:40 +0100 Subject: [PATCH] Fix BrowserLauncher calls * another thing that is presumably no longer imported when running jython scripts * but strangely does seem to work with jython scripting window --- About_CMTK.py | 3 ++- About_CMTK_GUI.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/About_CMTK.py b/About_CMTK.py index 3347a25..53d06ee 100644 --- a/About_CMTK.py +++ b/About_CMTK.py @@ -12,4 +12,5 @@ gd.setCancelLabel("CMTK Web Page") gd.showDialog() if gd.wasCanceled(): - BrowserLauncher().run("http://www.nitrc.org/projects/cmtk/") \ No newline at end of file + from ij import IJ + IJ.runPlugIn("ij.plugin.BrowserLauncher", "http://www.nitrc.org/projects/cmtk/") diff --git a/About_CMTK_GUI.py b/About_CMTK_GUI.py index f00f117..1e3afe8 100644 --- a/About_CMTK_GUI.py +++ b/About_CMTK_GUI.py @@ -11,4 +11,5 @@ gd.setCancelLabel("CMTK GUI Web Page") gd.showDialog() if gd.wasCanceled(): - BrowserLauncher().run("https://github.com/jefferis/fiji-cmtk-gui") \ No newline at end of file + from ij import IJ + IJ.runPlugIn("ij.plugin.BrowserLauncher", "https://github.com/jefferis/fiji-cmtk-gui")