diff options
Diffstat (limited to 'TurtleArt/taexporthtml.py')
-rw-r--r-- | TurtleArt/taexporthtml.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/TurtleArt/taexporthtml.py b/TurtleArt/taexporthtml.py index 843b8b0..8ed2b1f 100644 --- a/TurtleArt/taexporthtml.py +++ b/TurtleArt/taexporthtml.py @@ -18,9 +18,7 @@ #OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN #THE SOFTWARE. -import pygtk -pygtk.require('2.0') -import gtk +from util.gtkcompat import GdkPixbuf import os.path from cgi import escape from gettext import gettext as _ @@ -90,7 +88,7 @@ def save_html(self, tw, embed_flag=True): if p.endswith(('.svg')): tmp = imgdata else: - pixbuf = gtk.gdk.pixbuf_new_from_file(p) + pixbuf = GdkPixbuf.Pixbuf.new_from_file(p) imgdata = image_to_base64(pixbuf, get_path(tw.activity, 'instance')) tmp = HTML_GLUE['img2'][0] |