Issue 30349 - Python Tkinter module defect
Summary: Python Tkinter module defect
Status: CLOSED WONT_FIX
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows 2000
: P3 Trivial
Target Milestone: ---
Assignee: joergbudi
QA Contact: issues@api
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2004-06-16 15:58 UTC by christianjunker
Modified: 2013-02-24 21:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description christianjunker 2004-06-16 15:58:43 UTC
import Tkinter will result in the following output:
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\Program Files\OpenOffice.org1.1.1\program\python-core-2.2.2\lib\lib-t
k\Tkinter.py", line 35, in ?
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter

Tested it on several machines with different OOo versions: 1.1.1 and 1.1.0.
In all cases this error occurs.
Comment 1 christianjunker 2004-06-16 16:46:26 UTC
I have found out that the required file _tkinter.pyd is not existent in the OOo 
Python core. That's the reason why it cannot be loaded.
Solution: Download ActiveState Python version 2.2.x and take the _tkinter.pyd 
and copy it into your python-core-2.2.2\ folder.
Comment 2 christianjunker 2004-06-16 16:50:55 UTC
It's not guaranteed that it will work with the ActiveState _tkinter.pyd file.
However in my case it's not working, cause of some dll error.
Comment 3 stephan.wunderlich 2004-07-06 12:13:04 UTC
SW->JBU: pyuno seems to be your 'playground' :-)
Comment 4 stephan.wunderlich 2004-07-06 12:13:41 UTC
forgot to reassign
Comment 5 joergbudi 2004-07-07 22:51:48 UTC
Hi,

tkinter is currently not supported, it may be at some time in future, depending
on how much time I have left to spend on python. So currently setting the state
to WONTFIX.

You can study the 
http://udk.openoffice.org/python/python-bridge.html
homepage, there is a pyuno-needs-you section, where I am looking for volunteers
to take over this task.

Additonally, you may have a look at
http://udk.openoffice.org/python/python-bridge.html#replacing
to have a description on how to replace OOo python runtime with the system's
python installation, which may have all the optional packages you like.

Bye,

Joerg
Comment 6 ace_dent 2008-05-17 21:03:58 UTC
The Issue you raised has been marked as 'Resolved' and not updated within the
last 1 year+. I am therefore setting this issue to 'Verified' as the first step
towards Closing it. If you feel this is incorrect, please re-open the issue and
add any comments.

Many thanks,
Andrew
 
Cleaning-up and Closing old Issues
~ The Grand Bug Squash, pre v3 ~
http://marketing.openoffice.org/3.0/announcementbeta.html
Comment 7 ace_dent 2008-05-17 23:06:00 UTC
As per previous posting: Verified -> Closed.
A Closed Issue is a Happy Issue (TM).

Regards,
Andrew