vetriselvi / shedskin

Automatically exported from code.google.com/p/shedskin
0 stars 0 forks source link

Error printout for module TKinter #192

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
running command 
shedskin libMain.py

That is I am trying to convert my python script libMain.py to C++

------------------------------------
Recieving the following Error printout:

*** SHED SKIN Python-to-C++ Compiler 0.9.1 ***
Copyright 2005-2011 Mark Dufour; License GNU GPL version 3 (See LICENSE)

*ERROR* libMain.py:11: cannot locate module: Tkinter
-------------------
My code looks like this

#!/usr/bin/python
# -*- coding: utf-8 -*-

title = 'Pmw.advancedmenuBar demonstration'

# Import Pmw from this directory tree.
import sys
sys.path[:0] = ['../../..']

import Tkinter    <-------------THIS is where i fails
import Pmw
import libSearch
#from FileHandler import *
import fileHandler 
etc
------------------------------

Is this because the tool can't handle Tkinter or hav I done something wrong???

OS is UBUNTU 12.04.  
I used the following command to install the tool
sudo apt-get install shedskin
I hope I get the latiest version by using it

Gunnar

Original issue reported on code.google.com by gunnar.f...@gmail.com on 7 Jul 2013 at 1:09

GoogleCodeExporter commented 9 years ago
thanks for asking. unfortunately, only about 25 standard modules are directly 
supported by shedskin (such as 'random' and 're'). to use something like 
tkinter, you might be able to use shedskin to generate an extension module 
(shedskin -e) and import this in a main program that also uses tkinter. please 
see the documentation in the wiki for more details. there are also a few 
programs in the example set that use e.g. pygame or multiprocessing this way.

Original comment by mark.duf...@gmail.com on 8 Jul 2013 at 7:11