Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

You! What PLANET is this! -- McCoy, "The City on the Edge of Forever", stardate 3134.0


devel / comp.lang.tcl / date and time picker

SubjectAuthor
* date and time pickerGerhard Reithofer
`* Re: date and time pickerMole Cool
 `* Re: date and time pickerGerhard Reithofer
  `* Re: date and time pickerLuc
   +- Re: date and time pickerLuc
   `- Re: date and time pickerGerhard Reithofer

1
date and time picker

<31b649-97b2-1491-e269-43cfcd5fdce0@tech-edv.co.at>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: gerhard.reithofer@tech-edv.co.at (Gerhard Reithofer)
Newsgroups: comp.lang.tcl
Subject: date and time picker
Date: Mon, 8 May 2023 19:11:12 +0200
Lines: 10
Message-ID: <31b649-97b2-1491-e269-43cfcd5fdce0@tech-edv.co.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
X-Trace: individual.net 6RdiHK9pnXmQtf2Ir4T/zgD6s3hLQct0BiXNfWLcD2z8n0BIbr
X-Orig-Path: imac11.tech-edv.co.at!gerhard.reithofer
Cancel-Lock: sha1:cbwWraIweNhDRDBNsr5qu4B+eIY=
 by: Gerhard Reithofer - Mon, 8 May 2023 17:11 UTC

Hi TCLers,
I need a modern input widget for a date and time input.

As there's a great widget::dateentry in tklib but I haven't found a
similar tool for the time part.

Any suggestions?

--
Gerhard Reithofer - Techn. EDV Reithofer - http://www.tech-edv.co.at

Re: date and time picker

<9cc8a928-ba92-4c5c-a47e-1a5cc538938an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:f07:b0:74d:dcc:c9b7 with SMTP id v7-20020a05620a0f0700b0074d0dccc9b7mr5108471qkl.0.1683707292936;
Wed, 10 May 2023 01:28:12 -0700 (PDT)
X-Received: by 2002:a05:620a:4405:b0:757:6d26:55fe with SMTP id
v5-20020a05620a440500b007576d2655femr5156028qkp.12.1683707292721; Wed, 10 May
2023 01:28:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 10 May 2023 01:28:12 -0700 (PDT)
In-Reply-To: <31b649-97b2-1491-e269-43cfcd5fdce0@tech-edv.co.at>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:ee:9724:8b00:e184:b6f6:16b8:b777;
posting-account=IpC1pwoAAACCAmF-qbg4PWxvUAd-j7Tc
NNTP-Posting-Host: 2003:ee:9724:8b00:e184:b6f6:16b8:b777
References: <31b649-97b2-1491-e269-43cfcd5fdce0@tech-edv.co.at>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9cc8a928-ba92-4c5c-a47e-1a5cc538938an@googlegroups.com>
Subject: Re: date and time picker
From: molecool1058@googlemail.com (Mole Cool)
Injection-Date: Wed, 10 May 2023 08:28:12 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1686
 by: Mole Cool - Wed, 10 May 2023 08:28 UTC

Hello Gerhard, I could provide a single Date Picker,
looks similar to the Image here at https://m2.material.io/components/date-pickers#mobile-pickers
Check the picture above the text ‚Mobile calendar pickers adapt to a device’s orientation‘.

I show always the selected date on the left, the interface has NO entry, you must select year, month and the date.

I would move the code to the wiki if you don‘t need a range as well :-)

Re: date and time picker

<dca8efc2-dad-57cb-7962-38ce1b7880fc@tech-edv.co.at>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: gerhard.reithofer@tech-edv.co.at (Gerhard Reithofer)
Newsgroups: comp.lang.tcl
Subject: Re: date and time picker
Date: Thu, 25 May 2023 17:32:12 +0200
Lines: 23
Message-ID: <dca8efc2-dad-57cb-7962-38ce1b7880fc@tech-edv.co.at>
References: <31b649-97b2-1491-e269-43cfcd5fdce0@tech-edv.co.at> <9cc8a928-ba92-4c5c-a47e-1a5cc538938an@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
X-Trace: individual.net c9ZN/+x/K8KekfUor3536g3m3H4r6KUTqJII9oNGuciWNXyyQv
X-Orig-Path: imac11.tech-edv.co.at!gerhard.reithofer
Cancel-Lock: sha1:KdY8wJlWUJ/FX60d1C9P3PiFP2Q=
In-Reply-To: <9cc8a928-ba92-4c5c-a47e-1a5cc538938an@googlegroups.com>
 by: Gerhard Reithofer - Thu, 25 May 2023 15:32 UTC

Hi Mole,
looks very good but I need also athe time part even with seconds.

Bye,
Gerhard

On Wed, 10 May 2023, Mole Cool wrote:

> Hello Gerhard, I could provide a single Date Picker,
> looks similar to the Image here at https://m2.material.io/components/date-pickers#mobile-pickers
> Check the picture above the text ‚Mobile calendar pickers adapt to a device’s orientation‘.
>
> I show always the selected date on the left, the interface has NO entry, you must select year, month and the date.
>
> I would move the code to the wiki if you don‘t need a range as well :-)
>

--
Gerhard Reithofer - Techn. EDV Reithofer - http://www.tech-edv.co.at

Re: date and time picker

<20230525181219.25f0b6b1@lud1.home>

  copy mid

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

  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: date and time picker
Date: Thu, 25 May 2023 18:12:19 -0300
Organization: A noiseless patient Spider
Lines: 65
Message-ID: <20230525181219.25f0b6b1@lud1.home>
References: <31b649-97b2-1491-e269-43cfcd5fdce0@tech-edv.co.at>
<9cc8a928-ba92-4c5c-a47e-1a5cc538938an@googlegroups.com>
<dca8efc2-dad-57cb-7962-38ce1b7880fc@tech-edv.co.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="6c8912505050a858d396c3bd45fca42c";
logging-data="3866793"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wN0Y2vO4qqTPCW8clXpwnbcxQlPGkCSY="
Cancel-Lock: sha1:gYl3z2NPADwXAPQMpx9QLx3NECA=
 by: Luc - Thu, 25 May 2023 21:12 UTC

On Thu, 25 May 2023 17:32:12 +0200, Gerhard Reithofer wrote:

> Hi Mole,
> looks very good but I need also athe time part even with seconds.
>
> Bye,
> Gerhard

I believe the following code does what you want. The key bindings
don't work, but I don't always understand Tk. It seems to be a focus
problem, I don't know.

--------------------
package require Tk
package require Iwidgets

wm title . "Say when"

iwidgets::calendar .cal \
-startday monday -days "M T W T F S S" \
-outline black -weekendbackground #CCCCCC \
-width 250 -height 200 \
-command {set ::date [.cal get]}
pack .cal -expand yes -fill both

iwidgets::spinint .hour \
-labeltext "Hour: " \
-range {0 23} -wrap yes \
-textvariable ::chosenhour
pack .hour -expand yes -fill both
bind .hour <Up> {puts "go up"}
bind .hour <Down> {.hour down}

iwidgets::spinint .minute \
-labeltext "Minutes: " \
-range {0 59} -wrap yes \
-textvariable ::chosenminute
pack .minute -expand yes -fill both

iwidgets::spinint .seconds \
-labeltext "Seconds: " \
-range {0 59} -wrap yes \
-textvariable ::chosensecond
pack .seconds -expand yes -fill both

iwidgets::buttonbox .bb \
-padx 10 -pady 10
..bb add Go -text "Go!" -command {puts "$::date at $::chosenhour:$::chosenminute:$::chosensecond"}
pack .bb -expand yes -fill both

..cal select today
--------------------

source:
https://incrtcl.sourceforge.net/iwidgets/iwidgets/calendar.html
https://incrtcl.sourceforge.net/iwidgets/iwidgets/spinint.html

--
Luc
>>

Re: date and time picker

<20230525182218.3c74b762@lud1.home>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: luc@sep.invalid (Luc)
Newsgroups: comp.lang.tcl
Subject: Re: date and time picker
Date: Thu, 25 May 2023 18:22:18 -0300
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <20230525182218.3c74b762@lud1.home>
References: <31b649-97b2-1491-e269-43cfcd5fdce0@tech-edv.co.at>
<9cc8a928-ba92-4c5c-a47e-1a5cc538938an@googlegroups.com>
<dca8efc2-dad-57cb-7962-38ce1b7880fc@tech-edv.co.at>
<20230525181219.25f0b6b1@lud1.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="6c8912505050a858d396c3bd45fca42c";
logging-data="3870795"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fD5TKGCKpTgSuLDd9o+ImWAJ/+7CMFPw="
Cancel-Lock: sha1:ItAXyQrzF2dczibDX7mkuIKdNcM=
 by: Luc - Thu, 25 May 2023 21:22 UTC

On Thu, 25 May 2023 18:12:19 -0300, Luc wrote:

> I believe the following code does what you want.

Ooops, bug!

Please insert this after the last line:

last -> .cal select today
insert after -> set ::date [.cal get]

--
Luc
>>

Re: date and time picker

<5262d3b2-1565-671d-1269-3cdb12a87a66@tech-edv.co.at>

  copy mid

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

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news-2.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: gerhard.reithofer@tech-edv.co.at (Gerhard Reithofer)
Newsgroups: comp.lang.tcl
Subject: Re: date and time picker
Date: Mon, 29 May 2023 15:38:11 +0200
Lines: 29
Message-ID: <5262d3b2-1565-671d-1269-3cdb12a87a66@tech-edv.co.at>
References: <31b649-97b2-1491-e269-43cfcd5fdce0@tech-edv.co.at> <9cc8a928-ba92-4c5c-a47e-1a5cc538938an@googlegroups.com> <dca8efc2-dad-57cb-7962-38ce1b7880fc@tech-edv.co.at> <20230525181219.25f0b6b1@lud1.home>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
X-Trace: individual.net rFkREqvbo1feT9009n4knwXB+XAI24Xahd+ao3OmFA8sz0ipKr
X-Orig-Path: imac11.tech-edv.co.at!gerhard.reithofer
Cancel-Lock: sha1:BV6m6oWoJnyRf2lBVRAQsyAKT/o=
In-Reply-To: <20230525181219.25f0b6b1@lud1.home>
 by: Gerhard Reithofer - Mon, 29 May 2023 13:38 UTC

On Thu, 25 May 2023, Luc wrote:
Hi Luc,
thx, will have a look at it :-)

> On Thu, 25 May 2023 17:32:12 +0200, Gerhard Reithofer wrote:
>
> > Hi Mole,
> > looks very good but I need also athe time part even with seconds.
> >
> > Bye,
> > Gerhard
>
>
> I believe the following code does what you want. The key bindings
> don't work, but I don't always understand Tk. It seems to be a focus
> problem, I don't know.
>
>
> --------------------
> package require Tk
> package require Iwidgets

[...]

Bye,
Gerhard

--
Gerhard Reithofer - Techn. EDV Reithofer - http://www.tech-edv.co.at


devel / comp.lang.tcl / date and time picker

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor