Error processing request

Parameters

CONTENT_LENGTH0
REQUEST_METHODGET
REQUEST_URI/revision/Arrow+buttons?V=12
QUERY_STRINGV=12
CONTENT_TYPE
DOCUMENT_URI/revision/Arrow+buttons
DOCUMENT_ROOT/var/www/nikit/nikit/nginx/../docroot
SCGI1
SERVER_PROTOCOLHTTP/1.1
HTTPSon
REMOTE_ADDR172.69.58.134
REMOTE_PORT9926
SERVER_PORT4443
SERVER_NAMEwiki.tcl-lang.org
HTTP_HOSTwiki.tcl-lang.org
HTTP_CONNECTIONKeep-Alive
HTTP_ACCEPT_ENCODINGgzip, br
HTTP_X_FORWARDED_FOR3.12.34.178
HTTP_CF_RAY87e8bf34b94b1140-ORD
HTTP_X_FORWARDED_PROTOhttps
HTTP_CF_VISITOR{"scheme":"https"}
HTTP_ACCEPT*/*
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_CF_CONNECTING_IP3.12.34.178
HTTP_CDN_LOOPcloudflare
HTTP_CF_IPCOUNTRYUS

Body


Error

Unknow state transition: LINE -> END

-code

1

-level

0

-errorstack

INNER {returnImm {Unknow state transition: LINE -> END} {}} CALL {my render_wikit {Arrow buttons} {[Keith Vetter] 2003-03-12 : after seeing some tcl code on wiki pages that tried to use the "^" and "V" as arrow symbols on buttons[http://wiki.tcl.tk/1803] , I thought I'd make available simple bitmap images of the four arrows that can be used instead. Remember, you can use [Bitmap Editor] to tailor the images to exactly how you'd like them.

[KPV] 2010-07-02 : added diagonal arrows
----

[RS] wonders if such arrows should not be added to [Tk]'s built-in [bitmap]s...

[RLH] I tried it. Nice little arrows, it would be nice if they could be added.

[peterc] 2010-07-09: Another avenue worth looking at is trawling through UTF tables like this [http://www.fileformat.info/info/unicode/block/geometric_shapes/list.htm] and [http://www.fileformat.info/info/unicode/block/arrows/list.htm] for a text code (eg: \u25BC). Most platforms have good support for extended UTF characters now.

----
[KPV] 2010-07-13 : These have been added to ActiveState's distribution:
----
[WJG] 13/07/10 Gnocl has http://sites.google.com/site/gnocltclgtk/gnocl-user-documentation/buttons/gnocl-arrowbutton%|% gnocl::arrowButton%|%
----

======
package require Tk
package require widget::arrowbutton
set row -1
set col 9999
foreach orient {upleft up upright left star right downleft down downright} {
    if {[incr col] > 2} {
        incr row
        set col 0
    }
    grid [widget::arrowbutton .$orient -orientation $orient -command [list puts $orient]] -row $row -column $col
}
return
======

[AK]: To be precise, these were packaged up as the widget::arrowbutton package and put into [Tklib], and through that are now in ActiveState's [teapot] as well.

----

======
##+##########################################################################
#
# arrows.tcl -- bitmaps for eight directional arrows
# by Keith Vetter, Mar 12, 2003
# by Keith Vetter, July 2, 2010  added diagonal arrows
#

image create bitmap ::bit::up -data {
    #define up_width 11
    #define up_height 11
    static char up_bits = {
        0x00, 0x00, 0x20, 0x00, 0x70, 0x00, 0xf8, 0x00, 0xfc, 0x01, 0xfe,
        0x03, 0x70, 0x00, 0x70, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00
    }
}
image create bitmap ::bit::down -data {
    #define down_width 11
    #define down_height 11
    static char down_bits = {
        0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x70, 0x00, 0x70, 0x00, 0xfe,
        0x03, 0xfc, 0x01, 0xf8, 0x00, 0x70, 0x00, 0x20, 0x00, 0x00, 0x00
    }
}
image create bitmap ::bit::left -data {
    #define left_width 11
    #define left_height 11
    static char left_bits = {
        0x00, 0x00, 0x20, 0x00, 0x30, 0x00, 0x38, 0x00, 0xfc, 0x01, 0xfe,
        0x01, 0xfc, 0x01, 0x38, 0x00, 0x30, 0x00, 0x20, 0x00, 0x00, 0x00
    }
}
image create bitmap ::bit::right -data {
    #define right_width 11
    #define right_height 11
    static char right_bits = {
        0x00, 0x00, 0x20, 0x00, 0x60, 0x00, 0xe0, 0x00, 0xfc, 0x01, 0xfc,
        0x03, 0xfc, 0x01, 0xe0, 0x00, 0x60, 0x00, 0x20, 0x00, 0x00, 0x00
    }
}
image create bitmap ::bit::upleft -data {
    #define upleft_width 11
    #define upleft_height 11
    static char upleft_bits = {
        0x00, 0x00, 0x7e, 0x00, 0x3e, 0x00, 0x3e, 0x00, 0x7e, 0x00, 0xfe,
        0x00, 0xf2, 0x01, 0xe0, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00
    }    
}
image create bitmap ::bit::upright -data {
    #define upright_width 11
    #define upright_height 11
    static char upright_bits = {
        0x00, 0x00, 0xf0, 0x03, 0xe0, 0x03, 0xe0, 0x03, 0xf0, 0x03, 0xf8,
        0x03, 0x7c, 0x02, 0x38, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00
    }
}
image create bitmap ::bit::downleft -data {
    #define downleft_width 11
    #define downleft_height 11
    static char downleft_bits = {
        0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0xe0, 0x00, 0xf2, 0x01, 0xfe,
        0x00, 0x7e, 0x00, 0x3e, 0x00, 0x3e, 0x00, 0x7e, 0x00, 0x00, 0x00
    }
}
image create bitmap ::bit::downright -data {
    #define downright_width 11
    #define downright_height 11
    static char downright_bits = {
        0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x38, 0x00, 0x7c, 0x02, 0xf8,
        0x03, 0xf0, 0x03, 0xe0, 0x03, 0xe0, 0x03, 0xf0, 0x03, 0x00, 0x00
    }
}
image create bitmap ::bit::star -data {
    #define plus_width 11
    #define plus_height 11
    static char plus_bits = {
        0x00, 0x00, 0x22, 0x02, 0x24, 0x01, 0xa8, 0x00, 0x70, 0x00, 0xfe,
        0x03, 0x70, 0x00, 0xa8, 0x00, 0x24, 0x01, 0x22, 0x02, 0x00, 0x00
    }
}

# Now for a simple demo
package require Tk

frame .buttons
foreach dir {up upright right downright down downleft left upleft} {
    button .$dir -image ::bit::$dir -command [list set S(msg) "$dir arrow"]
}
button .star -image ::bit::star -command [list set S(msg) star]
label .lbl -textvariable S(msg) -bd 2 -relief sunken
set S(msg) "press a button"

grid .buttons -row 0 -pady .05i
grid .lbl -sticky ew
grid columnconfigure . 0 -weight 1
grid .upleft .up .upright  -in .buttons -row 0
grid .left .star .right -in .buttons
grid .downleft .down .downright  -in .buttons

return
======
See also:
 [create triangle image]
======
<<categories>> GUI} regexp2} CALL {my render {Arrow buttons} {[Keith Vetter] 2003-03-12 : after seeing some tcl code on wiki pages that tried to use the "^" and "V" as arrow symbols on buttons[http://wiki.tcl.tk/1803] , I thought I'd make available simple bitmap images of the four arrows that can be used instead. Remember, you can use [Bitmap Editor] to tailor the images to exactly how you'd like them.

[KPV] 2010-07-02 : added diagonal arrows
----

[RS] wonders if such arrows should not be added to [Tk]'s built-in [bitmap]s...

[RLH] I tried it. Nice little arrows, it would be nice if they could be added.

[peterc] 2010-07-09: Another avenue worth looking at is trawling through UTF tables like this [http://www.fileformat.info/info/unicode/block/geometric_shapes/list.htm] and [http://www.fileformat.info/info/unicode/block/arrows/list.htm] for a text code (eg: \u25BC). Most platforms have good support for extended UTF characters now.

----
[KPV] 2010-07-13 : These have been added to ActiveState's distribution:
----
[WJG] 13/07/10 Gnocl has http://sites.google.com/site/gnocltclgtk/gnocl-user-documentation/buttons/gnocl-arrowbutton%|% gnocl::arrowButton%|%
----

======
package require Tk
package require widget::arrowbutton
set row -1
set col 9999
foreach orient {upleft up upright left star right downleft down downright} {
    if {[incr col] > 2} {
        incr row
        set col 0
    }
    grid [widget::arrowbutton .$orient -orientation $orient -command [list puts $orient]] -row $row -column $col
}
return
======

[AK]: To be precise, these were packaged up as the widget::arrowbutton package and put into [Tklib], and through that are now in ActiveState's [teapot] as well.

----

======
##+##########################################################################
#
# arrows.tcl -- bitmaps for eight directional arrows
# by Keith Vetter, Mar 12, 2003
# by Keith Vetter, July 2, 2010  added diagonal arrows
#

image create bitmap ::bit::up -data {
    #define up_width 11
    #define up_height 11
    static char up_bits = {
        0x00, 0x00, 0x20, 0x00, 0x70, 0x00, 0xf8, 0x00, 0xfc, 0x01, 0xfe,
        0x03, 0x70, 0x00, 0x70, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00
    }
}
image create bitmap ::bit::down -data {
    #define down_width 11
    #define down_height 11
    static char down_bits = {
        0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x70, 0x00, 0x70, 0x00, 0xfe,
        0x03, 0xfc, 0x01, 0xf8, 0x00, 0x70, 0x00, 0x20, 0x00, 0x00, 0x00
    }
}
image create bitmap ::bit::left -data {
    #define left_width 11
    #define left_height 11
    static char left_bits = {
        0x00, 0x00, 0x20, 0x00, 0x30, 0x00, 0x38, 0x00, 0xfc, 0x01, 0xfe,
        0x01, 0xfc, 0x01, 0x38, 0x00, 0x30, 0x00, 0x20, 0x00, 0x00, 0x00
    }
}
image create bitmap ::bit::right -data {
    #define right_width 11
    #define right_height 11
    static char right_bits = {
        0x00, 0x00, 0x20, 0x00, 0x60, 0x00, 0xe0, 0x00, 0xfc, 0x01, 0xfc,
        0x03, 0xfc, 0x01, 0xe0, 0x00, 0x60, 0x00, 0x20, 0x00, 0x00, 0x00
    }
}
image create bitmap ::bit::upleft -data {
    #define upleft_width 11
    #define upleft_height 11
    static char upleft_bits = {
        0x00, 0x00, 0x7e, 0x00, 0x3e, 0x00, 0x3e, 0x00, 0x7e, 0x00, 0xfe,
        0x00, 0xf2, 0x01, 0xe0, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00
    }    
}
image create bitmap ::bit::upright -data {
    #define upright_width 11
    #define upright_height 11
    static char upright_bits = {
        0x00, 0x00, 0xf0, 0x03, 0xe0, 0x03, 0xe0, 0x03, 0xf0, 0x03, 0xf8,
        0x03, 0x7c, 0x02, 0x38, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00
    }
}
image create bitmap ::bit::downleft -data {
    #define downleft_width 11
    #define downleft_height 11
    static char downleft_bits = {
        0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0xe0, 0x00, 0xf2, 0x01, 0xfe,
        0x00, 0x7e, 0x00, 0x3e, 0x00, 0x3e, 0x00, 0x7e, 0x00, 0x00, 0x00
    }
}
image create bitmap ::bit::downright -data {
    #define downright_width 11
    #define downright_height 11
    static char downright_bits = {
        0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x38, 0x00, 0x7c, 0x02, 0xf8,
        0x03, 0xf0, 0x03, 0xe0, 0x03, 0xe0, 0x03, 0xf0, 0x03, 0x00, 0x00
    }
}
image create bitmap ::bit::star -data {
    #define plus_width 11
    #define plus_height 11
    static char plus_bits = {
        0x00, 0x00, 0x22, 0x02, 0x24, 0x01, 0xa8, 0x00, 0x70, 0x00, 0xfe,
        0x03, 0x70, 0x00, 0xa8, 0x00, 0x24, 0x01, 0x22, 0x02, 0x00, 0x00
    }
}

# Now for a simple demo
package require Tk

frame .buttons
foreach dir {up upright right downright down downleft left upleft} {
    button .$dir -image ::bit::$dir -command [list set S(msg) "$dir arrow"]
}
button .star -image ::bit::star -command [list set S(msg) star]
label .lbl -textvariable S(msg) -bd 2 -relief sunken
set S(msg) "press a button"

grid .buttons -row 0 -pady .05i
grid .lbl -sticky ew
grid columnconfigure . 0 -weight 1
grid .upleft .up .upright  -in .buttons -row 0
grid .left .star .right -in .buttons
grid .downleft .down .downright  -in .buttons

return
======
See also:
 [create triangle image]
======
<<categories>> GUI}} CALL {my revision {Arrow buttons}} CALL {::oo::Obj5516876 process revision/Arrow+buttons} CALL {::oo::Obj5516874 process}

-errorcode

NONE

-errorinfo

Unknow state transition: LINE -> END
    while executing
"error $msg"
    (class "::Wiki" method "render_wikit" line 6)
    invoked from within
"my render_$default_markup $N $C $mkup_rendering_engine"
    (class "::Wiki" method "render" line 8)
    invoked from within
"my render $name $C"
    (class "::Wiki" method "revision" line 31)
    invoked from within
"my revision $page"
    (class "::Wiki" method "process" line 56)
    invoked from within
"$server process [string trim $uri /]"

-errorline

4