File tree Expand file tree Collapse file tree 6 files changed +11
-12
lines changed Expand file tree Collapse file tree 6 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def __init__(self):
2222 # create node outputs.
2323 self .add_output ('out A' )
2424 self .add_output ('out B' )
25- self .set_icon ("example_auto_nodes/pear.png" )
25+ self .set_icon ("example_auto_nodes/icons/ pear.png" )
2626
2727
2828class BarNode (AutoNode ):
File renamed without changes.
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def __init__(self):
1515 self ._then = self .add_input ('then' )
1616 self ._else = self .add_input ('else' )
1717 self .add_output ('out' )
18- self .create_property ('out' , None )
18+ self .create_property ('out' , None )
1919
2020 def run (self ):
2121 if self .getInputData (self .condition ):
@@ -42,9 +42,9 @@ class BooleanNode(AutoNode):
4242
4343 def __init__ (self ):
4444 super (BooleanNode , self ).__init__ ()
45- self .a = self .add_input ('a' ,bool )
46- self .b = self .add_input ('b' ,bool )
47- self .add_output ('out' ,bool )
45+ self .a = self .add_input ('a' , bool )
46+ self .b = self .add_input ('b' , bool )
47+ self .add_output ('out' , bool )
4848 self .create_property ('out' , None )
4949 self .add_combo_menu ('funcs' ,
5050 'Functions' ,
@@ -75,4 +75,3 @@ def run(self):
7575 return
7676
7777 self .set_property ('out' , eval (self .func ))
78-
Original file line number Diff line number Diff line change 99import numpydoc .docscrape
1010import inspect
1111
12- import example_auto_nodes .wrappers . math as _math
13- import example_auto_nodes .wrappers . list as _list
14- import example_auto_nodes .wrappers . dict as _dict
15- import example_auto_nodes .wrappers . str as _str
16- import example_auto_nodes .wrappers . tuple as _tuple
12+ from .wrappers import math as _math
13+ from .wrappers import list as _list
14+ from .wrappers import dict as _dict
15+ from .wrappers import str as _str
16+ from .wrappers import tuple as _tuple
1717
1818
1919class MathModuleNode (ModuleNode ):
@@ -103,6 +103,7 @@ class numpyModuleNode(ModuleNode):
103103
104104 def __init__ (self ):
105105 super (numpyModuleNode , self ).__init__ ()
106+ self .set_icon ("example_auto_nodes/icons/numpy.png" )
106107
107108 def is_function (self , obj ):
108109 result = super (numpyModuleNode , self ).is_function (obj )
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ class ModuleNode(AutoNode):
4646
4747 def __init__ (self ,defaultInputType = None ,defaultOutputType = None ):
4848 super (ModuleNode , self ).__init__ (defaultInputType ,defaultOutputType )
49- self .set_color (25 , 58 , 51 )
5049 self .add_combo_menu ('funcs' , 'Functions' , items = list (self .module_functions .keys ()))
5150
5251 # switch math function type
You can’t perform that action at this time.
0 commit comments