From: Eugene Vlasov <eugene@ikz.ru> To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru> Subject: Re: [sisyphus] tkinter + setlocale() Date: Fri, 25 Mar 2005 21:47:39 +0500 Message-ID: <20050325164739.GA2809@eugene-home.ikz.ru> (raw) In-Reply-To: <m3vf7gj6x7.fsf@hammer.malta.altlinux.ru> [-- Attachment #1: Type: text/plain, Size: 1425 bytes --] Приветствую, Sergey Bolshakov. В письме от Fri, Mar 25, 2005 at 01:34:12PM +0200 вы пишете: >> После перехода на python 2.4 заметил следующую неприятную особенность: >> при попытке использовать в программах с интерфейсом на базе Tkinter >> простого вызова locale.setlocale(locale.LC_ALL, '') на stderr выдается: >> error reading package index file /usr/share/tcl/vfs1.3/pkgIndex.tcl: >> syntax error in expression "[package provide Tcl] < 8.4": extra tokens >> at end of expression > Рекомендовал бы проверить целостность пакета tcl-vfs: rpm -V tcl-vfs. > Впрочем, к setlocale это отношения не имеет. Все чисто: eugene ~ $ sudo rpm -V tcl-vfs eugene ~ $ eugene ~ $ rpm -q tcl-vfs tcl-vfs-1.3-alt4 Похоже, проблема именно в новом python-modules-tkinter, с python-2.3 я ничего такого не замечал. Да, ошибка происходит не в момент вызова setlocale, а в момент создания первого объекта Tkinter, будь то Frame или Button или Tk или наследованный от них объект, но без setlocale никаких ошибок не выдается. Есть костыль, который позволяет избежать появления этого сообщения об ошибке: до вызова setlocale проинициализировать Tk: tk = Tk() К сожалению, это решает только косметическую проблему - убирает сообщение об ошибке, BkSpc в Entry после вызова setlocale() все равно не работает. -- С уважением, Евгений mailto:eugvv@altlinux.ru [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-03-25 16:47 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-03-25 9:50 Eugene Vlasov 2005-03-25 11:34 ` Sergey Bolshakov 2005-03-25 16:47 ` Eugene Vlasov [this message] 2005-03-25 16:58 ` Sergey Bolshakov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20050325164739.GA2809@eugene-home.ikz.ru \ --to=eugene@ikz.ru \ --cc=sisyphus@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git