Abridged summary of comp.lang.tcl@googlegroups.com - 30 updates in 7 topics

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Abridged summary of comp.lang.tcl@googlegroups.com - 30 updates in 7 topics

comp.lang.tcl mailing list
Cecil Westerhof <[hidden email]>: Jun 26 05:17PM +0200

In another thread I 'was told' I should use Tk. I am not used to
programming GUI's, but that does not mean I should not start with it.
A GUI can certainly be an advantage.
 
I made the following ...more
Rich <[hidden email]>: Jun 26 03:34PM

> In another thread I 'was told' I should use Tk.
 
Well, in all fairness, it was more of a suggestion....
 
> This works, but I have a few questions.
> - When executing I get a listbox with ...more
Rich <[hidden email]>: Jun 26 03:36PM

> - When executing a command (instead of just printing it) I should
> display another window. But while executing this command I should
> not be able to start another command. How would I ...more
Cecil Westerhof <[hidden email]>: Jun 26 06:39PM +0200


> Cecil Westerhof <[hidden email]> wrote:
>> In another thread I 'was told' I should use Tk.
 
> Well, in all fairness, it was more of a suggestion....
 
That is why I put it between quotes.
...more
Rich <[hidden email]>: Jun 26 04:55PM

>> large enough to hold all the elements in the listbox.
 
> Aah, OK. I thought that pack made it as small as possible, but I was
> wrong. I will just use '-height 0' then. It works like a ...more
Cecil Westerhof <[hidden email]>: Jun 26 06:45PM +0200


> Also, if you have Tcl/Tk 8.6+, you can also use the "tk busy" feature
> to make the window "mute" to clicks/pokes with the mouse, which will
> achieve the same purpose.
 
That is even better. ...more
Cecil Westerhof <[hidden email]>: Jun 26 07:20PM +0200


> But if you want to pop up a new window and interact with the new
> window, then you do need to reenter the event loop, at which point if
> you want to block things you do have to handle it ...more
Robert Heller <[hidden email]>: Jun 26 01:54PM -0500

> > you want to block things you do have to handle it yourself.
 
> And how do I reenter the event loop? For example when I select
> 'Brew Tea' I want to display a window with teas to choose from. ...more
Rich <[hidden email]>: Jun 26 06:56PM

>> you want to block things you do have to handle it yourself.
 
> And how do I reenter the event loop? For example when I select
> 'Brew Tea' I want to display a window with teas to choose from. ...more
Rich <[hidden email]>: Jun 26 06:58PM

>> to make the window "mute" to clicks/pokes with the mouse, which will
>> achieve the same purpose.
 
> That is even better.
 
Yes, it works really well for creating 'modality' without the hassle ...more
Cecil Westerhof <[hidden email]>: Jun 26 08:29AM +0200


> since this is a user interface, you might consider using Tk
 
That is something I also want to implement: it should work from the
command-line and with a GUI.
 
--
Cecil Westerhof ...more
Cecil Westerhof <[hidden email]>: Jun 26 09:03AM +0200

> is added for managing windows, and makeTea must handle the selected
> tea of returning it from chooseTea, the normal event driven
> programming stuff.
 
I do not have experience with GUI stuff. ...more
Arjen Markus <[hidden email]>: Jun 26 12:45AM -0700

On Tuesday, June 26, 2018 at 9:14:04 AM UTC+2, Cecil Westerhof wrote:
> Brandnetel 2018-06-19 1
 
> But I do not get to see the window. What do I need to do?
...more
Cecil Westerhof <[hidden email]>: Jun 26 10:47AM +0200


>> But I do not get to see the window. What do I need to do?
 
>> I did 'package require Tk'.
 
> Could you show as the entire script? (And perhaps add "Sterremunt" in the process?)
...more
Cecil Westerhof <[hidden email]>: Jun 26 11:09AM +0200


>> Could you show as the entire script? (And perhaps add "Sterremunt" in the process?)
 
> The script is more as 250 lines and uses a database and my own
> library, but I try to cook something up. ...more
Ralf Fassel <[hidden email]>: Jun 26 01:42PM +0200

* Cecil Westerhof <[hidden email]>
| So the proc makeTea is never called.
--<snip-snip>--
| # Getting input from the terminal while displaying the prompt.
| proc getInput {prompt} { ...more
Arjen Markus <[hidden email]>: Jun 26 04:57AM -0700

On Tuesday, June 26, 2018 at 1:42:29 PM UTC+2, Ralf Fassel wrote:
> loop in order for the GUI code to work.
 
> HTH
> R'
 
The Wiki has plenty of examples for how to do this. A more typical use ...more
Cecil Westerhof <[hidden email]>: Jun 26 02:45PM +0200


> set teaList {Duizendblad "Moul Atai" Herfst}
 
> bind .lb <<ListboxSelect>> [list teaSelected .lb]
 
> catch {console show}
 
That looks interesting. I have to look into that. ...more
Rich <[hidden email]>: Jun 26 03:22PM


>> since this is a user interface, you might consider using Tk
 
> That is something I also want to implement: it should work from the
> command-line and with a GUI.
 
You could make it 'dual ...more
Rich <[hidden email]>: Jun 26 03:24PM

> Brandnetel 2018-06-19 1
 
> But I do not get to see the window. What do I need to do?
 
> I did 'package require Tk'.
 
Did you ever enter the event loop? Unless your ...more
[hidden email]: Jun 26 06:09AM -0700

DWF seeking single or DWM. I'm looking for a friend with benefits and possibly more. Please only message if you are looking for something similar. I'm not posting this for a one nighter. ...more
[hidden email]: Jun 26 06:08AM -0700

DWF seeking single or DWM. I'm looking for a friend with benefits and possibly more. Please only message if you are looking for something similar. I'm not posting this for a one nighter. ...more
Alexandru <[hidden email]>: Jun 25 09:15PM -0700

When using lset with an index larger than available in the list, the function returns an error. I find this annoying for my usage and I wrote a procedure that avoids this. What do you think of this ...more
Arjen Markus <[hidden email]>: Jun 26 02:20AM -0700

On Tuesday, June 26, 2018 at 6:15:11 AM UTC+2, Alexandru wrote:
> }
> lset l $idx $value
> }
 
Just a remark: [lset] can take several indices to handle nested lists. If you intend to use this as ...more
stefan <[hidden email]>: Jun 26 03:48AM -0700

> Does it make sense or even it could be an improvement to the actual "lset" function?
 
I haven't measured the difference, but I'd consider Tcl's on-board mechanisms first (error codes). ...more
stefan <[hidden email]>: Jun 26 03:56AM -0700

besides, your range or index check does not cover all possible types of index specification allowed for list commands (relative ones) so your [LSet] is not a full or drop-in replacement of [lset].
...more
Alexandru <[hidden email]>: Jun 26 04:23AM -0700

Am Dienstag, 26. Juni 2018 12:56:27 UTC+2 schrieb stefan:
> besides, your range or index check does not cover all possible types of index specification allowed for list commands (relative ones) so ...more
stefan <[hidden email]>: Jun 26 04:40AM -0700

> > > if {$nelem<[expr {$idx+1}]} {
 
> > Note: no [expr] needed in an expression.
 
> Oh, this is new to me: The first term of "if" is already interpreted as "expr"?
 
Exactly. From the [if] ...more
Alexandru <[hidden email]>: Jun 25 09:09PM -0700

> HTTP/1.1 200 OK
 
> At this point, I would say your 504 error comes either from a bug in the http package, or your not setting the request headers appropriately (maybe you can compare with what ...more
Brad Lanam <[hidden email]>: Jun 25 02:09PM -0700

> The idea is to redirect messages to file buffer when server disconnects.
> Everything is working OK except I get lost some messages before TCL realized that socket does not exists anymore (in my ...more
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to [hidden email].