# Path: guicavane/Paths.py
# TEMP_DIR = tempfile.gettempdir()
# 
# SEP = os.sep
# 
# CAPTCHA_GUI_FILE = GUI_DIR + SEP + "captcha.glade"


import gtk
import gobject
from guicavane.Paths import TEMP_DIR, SEP, CAPTCHA_GUI_FILE
#!/usr/bin/env python
# coding: utf-8

"""
Captcha Window. Utility to show an input window with a captcha image.
"""



CAPTCHA_IMAGE_PATH = TEMP_DIR + SEP + "recaptcha_image"


class CaptchaWindow(object):
    """ Window with an image of a captcha. The image is
    taken from CAPTCHA_IMAGE_PATH. """

    def __init__(self, gui_manager, ok_callback):
        """ Creates the window but not show it. ok_callback is called when
        the ok button is pressed. """

        self.gui_manager = gui_manager
        self.ok_callback = ok_callback


# Path: guicavane/Paths.py
# TEMP_DIR = tempfile.gettempdir()
# 
# SEP = os.sep
# 
# CAPTCHA_GUI_FILE = GUI_DIR + SEP + "captcha.glade"


# Path: guicavane/Downloaders/CaptchaWindow.py
import gtk
import gobject
from guicavane.Paths import TEMP_DIR, SEP, CAPTCHA_GUI_FILE

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

"""
Captcha Window. Utility to show an input window with a captcha image.
"""



CAPTCHA_IMAGE_PATH = TEMP_DIR + SEP + "recaptcha_image"


class CaptchaWindow(object):
    """ Window with an image of a captcha. The image is
    taken from CAPTCHA_IMAGE_PATH. """

    def __init__(self, gui_manager, ok_callback):
        """ Creates the window but not show it. ok_callback is called when
        the ok button is pressed. """

        self.gui_manager = gui_manager
        self.ok_callback = ok_callback


        self.builder = gtk.Builder()