bad selection option "from" 
Author Message
 bad selection option "from"

: I'm trying to install the TkReq, that is written for Tk 3.6, but i have 4.0 and
: there is a problem with compatibility. "Tk4.0 Overview and Porting Guide"
: didn't covered that problem. So... There are some lines written lik this:

:     bind .frame20.frame4.listbox1 <B1-Motion> {%W select from [%W nearest %y]}
:     bind .frame20.frame4.listbox1 <ButtonRelease-1> {if {$reqListExpand} {
:     ....blabla...

: and error message is here:

: bad selection option "from": must be anchor, clear, includes, or set
:     while executing
: ".frame20.frame4.listbox1 select from [.frame20.frame4.listbox1 nearest 33]"
:     (command bound to event)

: I can read from manual pages, what must do these anchor, clear, includes, or
: set, but can't read from nowhere what did the option "from", so, i don't know
: what is the aid. if i know maybe i'd rewrite something there, but i don't.
: can anyone help me?

Sorry... i forgot to note that the widget .frame20.frame4.listbox1 is listbox.
I'm really in trouble. There are a lot of
"<listboxpath> select from <wierufherigujetgierf>" commands. Can anyone give me
a solution, what to do instead of "select from"?

--
Asko Seeba.



Sun, 29 Mar 1998 03:00:00 GMT  
 bad selection option "from"
: I'm trying to install the TkReq, that is written for Tk 3.6, but i have 4.0 and
: there is a problem with compatibility. "Tk4.0 Overview and Porting Guide"
: didn't covered that problem. So... There are some lines written lik this:

:     bind .frame20.frame4.listbox1 <B1-Motion> {%W select from [%W nearest %y]}
:     bind .frame20.frame4.listbox1 <ButtonRelease-1> {if {$reqListExpand} {
:     ....blabla...

: and error message is here:

: bad selection option "from": must be anchor, clear, includes, or set
:     while executing
: ".frame20.frame4.listbox1 select from [.frame20.frame4.listbox1 nearest 33]"
:     (command bound to event)

: I can read from manual pages, what must do these anchor, clear, includes, or
: set, but can't read from nowhere what did the option "from", so, i don't know
: what is the aid. if i know maybe i'd rewrite something there, but i don't.
: can anyone help me?

Got it!! "from" must be replaced by "anchor".

--
Asko Seeba.



Mon, 30 Mar 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. bad option "identify"

2. bad option "_scrollWidget" when Freewrapped

3. TclError: bad option "<whatever>": must be cget or configure

4. Problem "bad option delta" with Scrollbar

5. bad option "delete": must configure

6. "selection get" and NULL selection

7. string.join(["Tk 4.2p2", "Python 1.4", "Win32", "free"], "for")

8. Printing "bad" font

9. "ep": Bad News

10. "Bad Managers" website

11. "bad file descriptor" from tcp sockets

12. "bad synchronous description" in Xilinx WebPack

 

 
Powered by phpBB® Forum Software