Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

< jaybonci> actually d-i stands for "divine intervention" ;) -- in #debian-devel


devel / comp.lang.tcl / Re: tkdnd (drag and drop) not working as expected

SubjectAuthor
* tkdnd (drag and drop) not working as expectedclt.to.davebr
`* Re: tkdnd (drag and drop) not working as expectedLuc
 `* Re: tkdnd (drag and drop) not working as expectedet99
  `- Re: tkdnd (drag and drop) not working as expectedet99

1
tkdnd (drag and drop) not working as expected

<6091685072262@dlp>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22134&group=comp.lang.tcl#22134

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: clt.to.davebr@dfgh.net
Newsgroups: comp.lang.tcl
Subject: tkdnd (drag and drop) not working as expected
Date: Fri, 26 May 23 03:37:42 GMT
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <6091685072262@dlp>
Injection-Info: dont-email.me; posting-host="744526d343bc57f981b9c13b2c551d78";
logging-data="4070444"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TGcxqvg1R9PXLxMdUfk+V"
Cancel-Lock: sha1:/WcCqh0m4yXBvIZw7fdY+ORSMpQ=
 by: clt.to.davebr@dfgh.net - Fri, 26 May 2023 03:37 UTC

bind .drop_target ...

should probably be

bind $::dropbutton ,,,

The examples use of .drop_target is confusing when used with the tkdnd::drop_target command

Daved B

Re: tkdnd (drag and drop) not working as expected

<20230526105236.3cfdd373@lud1.home>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22135&group=comp.lang.tcl#22135

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Re: tkdnd (drag and drop) not working as expected
Date: Fri, 26 May 2023 10:52:36 -0300
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <20230526105236.3cfdd373@lud1.home>
References: <6091685072262@dlp>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="521d10c3701a7d6bf74ec43a33239e56";
logging-data="9361"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19H3kmMS8XszKexQzbtx/0w9xvVYBUUZjQ="
Cancel-Lock: sha1:fiA03L05GiEp5SmORlQeD6/DDiY=
 by: Luc - Fri, 26 May 2023 13:52 UTC

On Fri, 26 May 23 03:37:42 GMT, clt.to.davebr@dfgh.net wrote:

> bind .drop_target ...
>
> should probably be
>
> bind $::dropbutton ,,,
>
> The examples use of .drop_target is confusing when used with the
> tkdnd::drop_target command
>
> Daved B

Thanks. But that is a typo from my use of sounds. My actual code
is this:

#bind .drop_target <<Drop>> {puts %D; return %A}
bind $::dropbutton <<Drop>> {p.playwav /path/to/sound/file.wav}

I deleted the line that uses sound from my example and uncommented
the line that uses puts, but forgot to adjust the bind statement.
But I already use bind $::dropbutton.

And it doesn't work.

--
Luc
>>

Re: tkdnd (drag and drop) not working as expected

<u4qu0r$27ra$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22136&group=comp.lang.tcl#22136

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: tkdnd (drag and drop) not working as expected
Date: Fri, 26 May 2023 11:32:58 -0700
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <u4qu0r$27ra$1@dont-email.me>
References: <6091685072262@dlp> <20230526105236.3cfdd373@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 26 May 2023 18:32:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b6af6762afb5b56ee772340eff66d931";
logging-data="73578"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ji3udAPiPnTu0lhbf1hdG"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:LdSbFk48fI49P5lSuhhD06stU6c=
Content-Language: en-US
In-Reply-To: <20230526105236.3cfdd373@lud1.home>
 by: et99 - Fri, 26 May 2023 18:32 UTC

On 5/26/2023 6:52 AM, Luc wrote:
> On Fri, 26 May 23 03:37:42 GMT, clt.to.davebr@dfgh.net wrote:
>
>> bind .drop_target ...
>>
>> should probably be
>>
>> bind $::dropbutton ,,,
>>
>> The examples use of .drop_target is confusing when used with the
>> tkdnd::drop_target command
>>
>> Daved B
>
>
> Thanks. But that is a typo from my use of sounds. My actual code
> is this:
>
> #bind .drop_target <<Drop>> {puts %D; return %A}
> bind $::dropbutton <<Drop>> {p.playwav /path/to/sound/file.wav}
>
> I deleted the line that uses sound from my example and uncommented
> the line that uses puts, but forgot to adjust the bind statement.
> But I already use bind $::dropbutton.
>
> And it doesn't work.
>

Is your code returning an action inside p.playwav like
it does with the return %A in the commented out bind?

If you don't then refuse drop is assumed, though to be
honest, I don't know what that does.

But maybe it messes things up if you don't do a return of
some kind. In my usage, I always just return "copy".

Have you looked at:

https://wiki.tcl-lang.org/page/TkDND+Tutorial

Especially look at the Q&A at the bottom.

Re: tkdnd (drag and drop) not working as expected

<u4s2jg$a52b$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=22137&group=comp.lang.tcl#22137

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: tkdnd (drag and drop) not working as expected
Date: Fri, 26 May 2023 21:57:20 -0700
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <u4s2jg$a52b$1@dont-email.me>
References: <6091685072262@dlp> <20230526105236.3cfdd373@lud1.home>
<u4qu0r$27ra$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 27 May 2023 04:57:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1ff1d2f11b0a3770b9b71d699a4f30c4";
logging-data="332875"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HHS45wUL2stML2ddam/+z"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:KsbtjD+2t6n8+9wwhAIXF5nun/g=
Content-Language: en-US
In-Reply-To: <u4qu0r$27ra$1@dont-email.me>
 by: et99 - Sat, 27 May 2023 04:57 UTC

On 5/26/2023 11:32 AM, et99 wrote:
> On 5/26/2023 6:52 AM, Luc wrote:
>> On Fri, 26 May 23 03:37:42 GMT, clt.to.davebr@dfgh.net wrote:
>>
>>> bind .drop_target ...
>>>
>>> should probably be
>>>
>>> bind $::dropbutton ,,,
>>>
>>> The examples use of .drop_target is confusing when used with the
>>> tkdnd::drop_target command
>>>
>>> Daved B
>>
>>
>> Thanks. But that is a typo from my use of sounds. My actual code
>> is this:
>>
>> #bind .drop_target <<Drop>> {puts %D; return %A}
>> bind $::dropbutton <<Drop>> {p.playwav /path/to/sound/file.wav}
>>
>> I deleted the line that uses sound from my example and uncommented
>> the line that uses puts, but forgot to adjust the bind statement.
>> But I already use bind $::dropbutton.
>>
>> And it doesn't work.
>>
>
>
>
> Is your code returning an action inside p.playwav like
> it does with the return %A in the commented out bind?
>
> If you don't then refuse drop is assumed, though to be
> honest, I don't know what that does.
>
> But maybe it messes things up if you don't do a return of
> some kind. In my usage, I always just return "copy".
>
> Have you looked at:
>
> https://wiki.tcl-lang.org/page/TkDND+Tutorial
>
> Especially look at the Q&A at the bottom.
>
>
>
>
Actually, when I changed it to:

bind $::dropbutton <<Drop>> {p.playwav %D}

and dragged a .wav file onto DROP it works for me
on my windows system.

I didn't bother to return an action. So, that's not
a problem here.

How are you dragging, I'm just using windows explorer.


devel / comp.lang.tcl / Re: tkdnd (drag and drop) not working as expected

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor