Ejemplo n.º 1
0
def initWindow(fieldP = 0):
   global button1,button2
   button1 = kButton(ctx,ctx.control("button1"),"$(LOCAL)/Button1-normal.png","$(LOCAL)/Button1-down.png","$(LOCAL)/Button1-over.png","$(LOCAL)/Button1-disabled.png")
   button2 = kButton(ctx,ctx.control("button2"),"$(LOCAL)/Button2-normal.png","$(LOCAL)/Button2-down.png","$(LOCAL)/Button2-over.png","$(LOCAL)/Button2-disabled.png")
   button2.setType(BT_BOOL)
   
   global eventFilter1
   eventFilter1 = ctx.control("eventFilter1")
   eventFilter1.addControl(ctx.control("button1"), True)
   eventFilter1.addControl(ctx.control("button2"), True)
   
   global analyzer1
   analyzer1 = kButtonAnalyzer(ctx,eventFilter1)
   
   return
Ejemplo n.º 2
0
def initWindow(fieldP=0):
    global button1, button2
    button1 = kButton(ctx, ctx.control("button1"),
                      "$(LOCAL)/Button1-normal.png",
                      "$(LOCAL)/Button1-down.png", "$(LOCAL)/Button1-over.png",
                      "$(LOCAL)/Button1-disabled.png")
    button2 = kButton(ctx, ctx.control("button2"),
                      "$(LOCAL)/Button2-normal.png",
                      "$(LOCAL)/Button2-down.png", "$(LOCAL)/Button2-over.png",
                      "$(LOCAL)/Button2-disabled.png")
    button2.setType(BT_BOOL)

    global eventFilter1
    eventFilter1 = ctx.control("eventFilter1")
    eventFilter1.addControl(ctx.control("button1"), True)
    eventFilter1.addControl(ctx.control("button2"), True)

    global analyzer1
    analyzer1 = kButtonAnalyzer(ctx, eventFilter1)

    return
Ejemplo n.º 3
0
def initWindow(fieldP=0):
   global _buttonEventFilter1
   _buttonEventFilter1 = ctx.control("ButtonEventFilter")
   
   #Buttons zum Laden
   global bt_demo, bt_browse, bt_exit
   bt_demo = kButton(ctx,ctx.control("bt_demo"),"$(LOCAL)/img/bt_demo-n.png","$(LOCAL)/img/bt_demo-p.png","$(LOCAL)/img/bt_demo-o.png","$(LOCAL)/img/bt_demo-d.png")
   _buttonEventFilter1.addControl(ctx.control("bt_demo"), True)
   bt_browse = kButton(ctx,ctx.control("bt_browse"),"$(LOCAL)/img/bt_browse-n.png","$(LOCAL)/img/bt_browse-p.png","$(LOCAL)/img/bt_browse-o.png","$(LOCAL)/img/bt_browse-d.png")
   _buttonEventFilter1.addControl(ctx.control("bt_browse"), True)
   bt_exit = kButton(ctx,ctx.control("bt_exit"),"$(LOCAL)/img/bt_exit-n.png","$(LOCAL)/img/bt_exit-p.png","$(LOCAL)/img/bt_exit-o.png","$(LOCAL)/img/bt_exit-d.png")
   _buttonEventFilter1.addControl(ctx.control("bt_exit"), True)
   
   #Buttons für Browser
   global bt_sgb, bt_hierarchy
   bt_sgb = kButton(ctx,ctx.control("bt_sgb"),"$(LOCAL)/img/bt_sgb-n.png","$(LOCAL)/img/bt_sgb-p.png","$(LOCAL)/img/bt_sgb-o.png","$(LOCAL)/img/bt_sgb-d.png")
   _buttonEventFilter1.addControl(ctx.control("bt_sgb"), True)
   bt_sgb.setType(BT_BOOL)   
   bt_hierarchy = kButton(ctx,ctx.control("bt_hierarchy"),"$(LOCAL)/img/bt_hierarchy-n.png","$(LOCAL)/img/bt_hierarchy-p.png","$(LOCAL)/img/bt_hierarchy-o.png","$(LOCAL)/img/bt_hierarchy-d.png")
   _buttonEventFilter1.addControl(ctx.control("bt_hierarchy"), True)
   bt_hierarchy.setType(BT_BOOL)
   bt_hierarchy.setState(STATE_DOWN)
   
   #Buttons Collections, CSO
   global bt_cso,bt_collections,bt_addcol
   bt_collections = kButton(ctx,ctx.control("bt_collections"),"$(LOCAL)/img/bt_collections-n.png","$(LOCAL)/img/bt_collections-p.png","$(LOCAL)/img/bt_collections-o.png","$(LOCAL)/img/bt_collections-d.png")
   _buttonEventFilter1.addControl(ctx.control("bt_collections"), True)
   bt_collections.setType(BT_BOOL)   
   bt_cso = kButton(ctx,ctx.control("bt_cso"),"$(LOCAL)/img/bt_cso-n.png","$(LOCAL)/img/bt_cso-p.png","$(LOCAL)/img/bt_cso-o.png","$(LOCAL)/img/bt_cso-d.png")
   _buttonEventFilter1.addControl(ctx.control("bt_cso"), True)
   bt_cso.setType(BT_BOOL)
   bt_cso.setState(STATE_DOWN)
   bt_addcol = kButton(ctx,ctx.control("bt_addcol"),"$(LOCAL)/img/bt_addcol-n.png","$(LOCAL)/img/bt_addcol-p.png","$(LOCAL)/img/bt_addcol-o.png","$(LOCAL)/img/bt_addcol-d.png")
   _buttonEventFilter1.addControl(ctx.control("bt_addcol"), True)
   
   
   global analyzer1
   analyzer1 = kButtonAnalyzer(ctx,_buttonEventFilter1)
   
   
   
   global _tw_browser
   _tw_browser = ctx.control("browser")
   global _tw_bottom
   _tw_bottom = ctx.control("tabbottom")

   
   return
Ejemplo n.º 4
0
def initWindow(fieldP=0):
    global _buttonEventFilter1
    _buttonEventFilter1 = ctx.control("ButtonEventFilter")

    #Buttons zum Laden
    global bt_demo, bt_browse, bt_exit
    bt_demo = kButton(ctx, ctx.control("bt_demo"),
                      "$(LOCAL)/img/bt_demo-n.png",
                      "$(LOCAL)/img/bt_demo-p.png",
                      "$(LOCAL)/img/bt_demo-o.png",
                      "$(LOCAL)/img/bt_demo-d.png")
    _buttonEventFilter1.addControl(ctx.control("bt_demo"), True)
    bt_browse = kButton(ctx, ctx.control("bt_browse"),
                        "$(LOCAL)/img/bt_browse-n.png",
                        "$(LOCAL)/img/bt_browse-p.png",
                        "$(LOCAL)/img/bt_browse-o.png",
                        "$(LOCAL)/img/bt_browse-d.png")
    _buttonEventFilter1.addControl(ctx.control("bt_browse"), True)
    bt_exit = kButton(ctx, ctx.control("bt_exit"),
                      "$(LOCAL)/img/bt_exit-n.png",
                      "$(LOCAL)/img/bt_exit-p.png",
                      "$(LOCAL)/img/bt_exit-o.png",
                      "$(LOCAL)/img/bt_exit-d.png")
    _buttonEventFilter1.addControl(ctx.control("bt_exit"), True)

    #Buttons für Browser
    global bt_sgb, bt_hierarchy
    bt_sgb = kButton(ctx, ctx.control("bt_sgb"), "$(LOCAL)/img/bt_sgb-n.png",
                     "$(LOCAL)/img/bt_sgb-p.png", "$(LOCAL)/img/bt_sgb-o.png",
                     "$(LOCAL)/img/bt_sgb-d.png")
    _buttonEventFilter1.addControl(ctx.control("bt_sgb"), True)
    bt_sgb.setType(BT_BOOL)
    bt_hierarchy = kButton(ctx, ctx.control("bt_hierarchy"),
                           "$(LOCAL)/img/bt_hierarchy-n.png",
                           "$(LOCAL)/img/bt_hierarchy-p.png",
                           "$(LOCAL)/img/bt_hierarchy-o.png",
                           "$(LOCAL)/img/bt_hierarchy-d.png")
    _buttonEventFilter1.addControl(ctx.control("bt_hierarchy"), True)
    bt_hierarchy.setType(BT_BOOL)
    bt_hierarchy.setState(STATE_DOWN)

    #Buttons Collections, CSO
    global bt_cso, bt_collections, bt_addcol
    bt_collections = kButton(ctx, ctx.control("bt_collections"),
                             "$(LOCAL)/img/bt_collections-n.png",
                             "$(LOCAL)/img/bt_collections-p.png",
                             "$(LOCAL)/img/bt_collections-o.png",
                             "$(LOCAL)/img/bt_collections-d.png")
    _buttonEventFilter1.addControl(ctx.control("bt_collections"), True)
    bt_collections.setType(BT_BOOL)
    bt_cso = kButton(ctx, ctx.control("bt_cso"), "$(LOCAL)/img/bt_cso-n.png",
                     "$(LOCAL)/img/bt_cso-p.png", "$(LOCAL)/img/bt_cso-o.png",
                     "$(LOCAL)/img/bt_cso-d.png")
    _buttonEventFilter1.addControl(ctx.control("bt_cso"), True)
    bt_cso.setType(BT_BOOL)
    bt_cso.setState(STATE_DOWN)
    bt_addcol = kButton(ctx, ctx.control("bt_addcol"),
                        "$(LOCAL)/img/bt_addcol-n.png",
                        "$(LOCAL)/img/bt_addcol-p.png",
                        "$(LOCAL)/img/bt_addcol-o.png",
                        "$(LOCAL)/img/bt_addcol-d.png")
    _buttonEventFilter1.addControl(ctx.control("bt_addcol"), True)

    global analyzer1
    analyzer1 = kButtonAnalyzer(ctx, _buttonEventFilter1)

    global _tw_browser
    _tw_browser = ctx.control("browser")
    global _tw_bottom
    _tw_bottom = ctx.control("tabbottom")

    return