Utilisation de tkinter et tix
Bonsoir,
J'ai une config Ubuntu 16.04 et Python3.5 sur un netbook, j'ai fait un petit programme qui marche très bien: calcul avec interface en tkinter et tix pour gérer des onglets.
Sur un nouvel ordi j'ai installé Ubuntu 16.O4 + Python 3.5, j'ai un problème avec tix qui semble mal installé je pense.
J'ai le message suivant dans IDLE3:
Python 3.5.2 (default, Sep 10 2016, 08:21:44)
Code:
1 2 3 4 5 6 7 8 9 10
| [GCC 5.4.0 20160609] on linux
Type "copyright", "credits" or "license()" for more information.
>>> from tkinter import tix
>>> tix.Tk()
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
tix.Tk()
File "/usr/lib/python3.5/tkinter/tix.py", line 221, in __init__
self.tk.eval('package require Tix')
_tkinter.TclError: can't find package Tix |
Alors que;
Code:
1 2
| >>> from tkinter import tix
>>> tix.Tk() |
cela marche bien sur le premier ordi.
Je vois bien que c'est un pb de package Tix mais après pleins d'essais d'installation je sèche.
Pouvez-vous m'éclairer?
Merci.