Menu

Tier 3 questions

Help
2008-10-06
2012-10-01
  • Mykhaylo Sorochan

    Hello,

    I have the following questions on Poet when Tier 3 is enabled:

    1. Where output does come to? e.g. from 'puts'
    2. Is it possible to switch between tiers withing the running application? E.g. from 2 to 3 and back. How?
    3. Can you explain briefly what Tier 3 brings into event processing. In my application on a Canvas I get different behavior when Tier 3 is on.

    Thanks.

     
    • Phil Mercurio

      Phil Mercurio - 2008-10-06

      1) Enabling tier3 also initializes the Tk console (I use tkcon by default), so
      puts output goes there. Add "console show" or "tkcon show" early in your
      script if you want the console available at start. Otherwise, you can get to
      it from the Poetics toolbox (pressing F7 should open the toolbox).

      2) Enabling tier3 makes the tier3 objects available via autoloading and
      adds bindings for a right-click popup menu and F7 to bring up the toolbox.
      Take a look at tier3-poetics.tcl, specifically the minimalInit method. You
      can't really shut off tier3, but you could remove the bindings to disable the
      popup menu and toolbox.

      3) Other than the bindings described above, tier3 shouldn't really do anything
      to the event processing. Please describe what kind of different behavior
      you're seeing on the canvas, if it's more than the right-click popup.

      Remember that tier3 is pretty experimental and not really ready for end-user
      use (I try to make that point in my Tcl2007 paper on Poet). Playing around
      in the Object Editor will often cause the program to crash, but it's a great way
      to inspect a running Poet program and make modifications.

       
      • Mykhaylo Sorochan

        Regarding 3:

        I have the following functionality (simplified):

        When the canvas is clicked a rectangle is put on it. Then the button click event is generated for a canvas over the rectangle.
        E.g. one wants to create a new shape on a screen. He pushes button-1 and drag it, on the canvas a new object appeared, so the one resizes it.
        With Tier 3 enabled dragging is not working.

        I will work on it more to see where the message/event is lost, may be will reconfigure my event chain.

         
        • Phil Mercurio

          Phil Mercurio - 2008-10-06

          That's weird, Poetics doesn't mess with the button 1 click or drag
          bindings. Unless you're on a Mac, in which case control-button-1 is
          bound (it pops up the menu). Try, in the console, checking all bindings
          on the canvas.

           
          • Mykhaylo Sorochan

            I've rebuilt a bit my event chain, now the issue cannot be replicated.

             

Log in to post a comment.