Path: ...!news.mixmin.net!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!usenet-fr.net!agneau.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed3-b.proxad.net!nnrp1-2.free.fr!not-for-mail Date: Mon, 17 Jan 2022 09:57:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: =?UTF-8?Q?Re=3a_Heure_syst=c3=a8me?= Content-Language: fr Newsgroups: fr.comp.lang.python References: <5q6dnTS5YrHhSXz8nZ2dnUU7_83NnZ2d@giganews.com> From: Nicolas In-Reply-To: <5q6dnTS5YrHhSXz8nZ2dnUU7_83NnZ2d@giganews.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 10 Message-ID: <61e52f88$0$28600$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 17 Jan 2022 09:57:44 CET NNTP-Posting-Host: 195.101.33.1 X-Trace: 1642409864 news-1.free.fr 28600 195.101.33.1:3014 X-Complaints-To: abuse@proxad.net Bytes: 1528 Le 14/01/2022 à 20:52, HAJRI a écrit : > Bonjour, > j'ai utilisé ce code pour afficher l'heure système dans une zone Label nommée t1 > de pyQt5 de python. comment faire pour afficher l'heure toutes les secondes? Ce code à l'avantage de lu très rapidement ;) Je ne connais pas pyQt5 mais, globalement, le principe est de mettre en place un timer qui appelle une callback. La callback modifie le contenu du Label.