ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Использование tix с python23
@ 2003-12-15 22:34 Евгений Косенко
  2003-12-15 23:05 ` [sisyphus] " Евгений Косенко
  2003-12-16  3:46 ` [sisyphus] " Alexey Morozov
  0 siblings, 2 replies; 7+ messages in thread
From: Евгений Косенко @ 2003-12-15 22:34 UTC (permalink / raw)
  To: sisyphus

Привет!

Попытался освоить 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).

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-12-18  9:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-15 22:34 [sisyphus] Использование tix с python23 Евгений Косенко
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

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