ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Евгений Косенко" <eugine_kosenko@ukr.net>
To: sisyphus@altlinux.ru
Subject: [sisyphus] Использование tix с python23
Date: Tue, 16 Dec 2003 00:34:11 +0200
Message-ID: <20031216003411.537deeda.eugine_kosenko@ukr.net> (raw)

Привет!

Попытался освоить tix для python23. Согласно документации простейшая tix-программа (даже не программа, а фрагмент) должна выглядеть так:

import Tkinter
from Tkconstants import *
import Tix

root = Tix.Tk()
widget = Tix.ComboBox(root)

root.mainloop()

К сожалению, при запуске этой программы получаем следующее:

Traceback (most recent call last):
  File "tix.py", line 6, in ?
    widget = Tix.ComboBox(root)
  File "/usr/lib/python2.3/lib-tk/Tix.py", line 576, in __init__
    cnf, kw)
  File "/usr/lib/python2.3/lib-tk/Tix.py", line 307, in __init__
    self.tk.call(widgetName, self._w, *extra)
_tkinter.TclError: expected integer but got "-"

Вначале я думал, что у меня что-то не так с руками. Обратился в рассылку Питона, получил следующий ответ:

Seems like your Tix installation might be broken. This is very likely if you are running RedHat
or Debian (maybe others too, I don't know).

On RedHat (and Fedora as well I have heard) it seems to be kind of tradition that Tix does not work,
so if you are running RedHat you will probably have to get the sources of both tcl/tk and Tix
and recompile them (make sure to get the sources from the vendors and not the source RPMS from RedHat
and take care that you get the exactly same versions as originally delivered with the distro otherwise
python and maybe some other things might not work anymore).

Короче говоря, пересобирайте из исходников, но ни в коем случае не из исходников дистрибутора. Ну, исходники я взял, сейчас шаманю на предмет сборки, однако хотелось бы узнать авторитетное мнение держателей пакетов на эту тему...


             reply	other threads:[~2003-12-15 22:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-15 22:34 Евгений Косенко [this message]
2003-12-15 23:05 ` [sisyphus] " Евгений Косенко
2003-12-15 23:21   ` Евгений Косенко
2003-12-16  1:08     ` Евгений Косенко
2003-12-16  4:48       ` [sisyphus] Re: Использование tix с python23[JT] iLya Bryzgalow
2003-12-18  9:31       ` [sisyphus] Re: Использование tix с python23 Sergey Bolshakov
2003-12-16  3:46 ` [sisyphus] " Alexey Morozov

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=20031216003411.537deeda.eugine_kosenko@ukr.net \
    --to=eugine_kosenko@ukr.net \
    --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