Browse Source

add: debug info

micha 2 months ago
parent
commit
f0aa9d585e
2 changed files with 12 additions and 4 deletions
  1. 4 2
      lib/meta.py
  2. 8 2
      lib/tkevent.py

+ 4 - 2
lib/meta.py

@@ -287,9 +287,11 @@ def Optionbuffer_create_ATTR(attr_grp="",val=""):
     options = ["none1","none2"]
     if attr_grp in ATTR_GRP:
         options = ATTR_GRP[attr_grp]
-    options.append(" ")
+    #options.append(" ")
+    if " " not in options:
+        options.insert(0," ")
     ob = OptionBuffer(val,options)
-    ob.set_init(" ")
+    #ob.set_init(" ")
     ob.reset()
     return ob
 

+ 8 - 2
lib/tkevent.py

@@ -505,6 +505,10 @@ class tk_event_fx():
         fx3_grid = MAIN.meta.fx3_grid # OptionBuffer()
         if self.attr not in fx3_grid:
             fx_data = {}
+            if self.attr == "CIRCLE":
+                for k,v in fx3_grid.items():
+                    if k.startwith("ATTR"):
+                        print(self.attr,k,v)
             if self.attr == "PLAY":
                 for k,v in fx3_grid.items():
                     vv = v.val()
@@ -515,11 +519,12 @@ class tk_event_fx():
                     #print("**",k,vv,v)
                     
                 for k,v in fx_data.items():
-                    print("HH",k,v)
+                    if "ATTR" in v and v["ATTR"] != " ":
+                        print("HH",k,v)
+
             print()
             return
         fx_func = MAIN.meta.OptionBuffer()
-
         if self.attr.startswith("ATTR:"):
             col = self.attr.split(":")[1]
             fx_func1 = fx3_grid["GRP:"+str(col)]
@@ -529,6 +534,7 @@ class tk_event_fx():
                 fx_func1.val(GRP)
                 fx3_grid[self.attr] = MAIN.meta.Optionbuffer_create_ATTR(GRP)
             fx_func = fx3_grid[self.attr] 
+            print(fx_func.data)
             fx_func.data["wrap"] = 1
         else: 
             fx_func = fx3_grid[self.attr]