Index: wflow-py/WflowDeltashell/addwflowtoolbar.py =================================================================== diff -u -r08a987702d1e404792fecefc8fbc97b005449a20 -r12ea40dc08628f654753679e0972e87b7bb12f7a --- wflow-py/WflowDeltashell/addwflowtoolbar.py (.../addwflowtoolbar.py) (revision 08a987702d1e404792fecefc8fbc97b005449a20) +++ wflow-py/WflowDeltashell/addwflowtoolbar.py (.../addwflowtoolbar.py) (revision 12ea40dc08628f654753679e0972e87b7bb12f7a) @@ -3,37 +3,52 @@ def OpenDoc(url): - import Libraries.StandardFunctions as sf - from DelftTools.Utils import Url - murl = Url(url,url) - sf.OpenView(murl) + import Libraries.StandardFunctions as sf + from DelftTools.Utils import Url + murl = Url(url, url) + sf.OpenView(murl) + + def notimplemented(): - print "Not implemented yet..." + print "Not implemented yet..." + name = "Web Documentation" tabName = "Wflow-Tools" groupName = "Internet" -CreateShortcutButton(name,groupName,tabName, lambda: OpenDoc("http://wflow.readthedocs.io/en/latest/"), None) +CreateShortcutButton( + name, + groupName, + tabName, + lambda: OpenDoc("http://wflow.readthedocs.io/en/latest/"), + None, +) name = "Github" tabName = "Wflow-Tools" groupName = "Internet" -CreateShortcutButton(name,groupName,tabName, lambda: OpenDoc("http://github.com/openstreams/wflow"), None) +CreateShortcutButton( + name, + groupName, + tabName, + lambda: OpenDoc("http://github.com/openstreams/wflow"), + None, +) name = "Plotcsv" tabName = "Wflow-Tools" groupName = "Plots" -CreateShortcutButton(name,groupName,tabName, lambda: plotit(getcsvname()), None) +CreateShortcutButton(name, groupName, tabName, lambda: plotit(getcsvname()), None) name = "Netcdf Input" tabName = "Wflow-Tools" groupName = "Conversion" -CreateShortcutButton(name,groupName,tabName, lambda: notimplemented(), None) +CreateShortcutButton(name, groupName, tabName, lambda: notimplemented(), None) -#RemoveShortcut(name,groupName,tabName) -#RemoveShortcutsTab(tabName) \ No newline at end of file +# RemoveShortcut(name,groupName,tabName) +# RemoveShortcutsTab(tabName)