Exemple #1
0
    def __new__(cls, sent):
        """Special static method that's automatically called by Python when 
        constructing a new instance of this class.
        
        Returns a fully instantiated RenderDialog object.
        """
        subs = sent.split(":")

        global projection 
        projection = subs[0]
        global new_stylesheet
        new_stylesheet = subs[2]
        global path
        path = subs[1]
        global shapefile
        shapefile = subs[3]
        global image
        image = ''
        global checkbutton
        checkbutton = False

        builder = get_builder('RenderDialog')
        new_object = builder.get_object('render_dialog')
        new_object.finish_initializing(builder)
        return new_object
Exemple #2
0
    def __new__(cls, sent):
        """Special static method that's automatically called by Python when 
        constructing a new instance of this class.
        
        Returns a fully instantiated RenderDialog object.
        """
        subs = sent.split(":")

        global projection
        projection = subs[0]
        global new_stylesheet
        new_stylesheet = subs[2]
        global path
        path = subs[1]
        global shapefile
        shapefile = subs[3]
        global image
        image = ''
        global checkbutton
        checkbutton = False

        builder = get_builder('RenderDialog')
        new_object = builder.get_object('render_dialog')
        new_object.finish_initializing(builder)
        return new_object
 def __new__(cls):
     """Special static method that's automatically called by Python when 
     constructing a new instance of this class.
     
     Returns a fully instantiated ChooseprojectionDialog object.
     """
     builder = get_builder('ChooseprojectionDialog')
     new_object = builder.get_object('chooseprojection_dialog')
     new_object.finish_initializing(builder)
     return new_object
 def __new__(cls):
     """Special static method that's automatically called by Python when 
     constructing a new instance of this class.
     
     Returns a fully instantiated ChooseprojectionDialog object.
     """
     builder = get_builder('ChooseprojectionDialog')
     new_object = builder.get_object('chooseprojection_dialog')
     new_object.finish_initializing(builder)
     return new_object
Exemple #5
0
    def __new__(cls, test):
        """Special static method that's automatically called by Python when 
        constructing a new instance of this class.
        
        Returns a fully instantiated TrynerrorDialog object.
        """
        global tester
        tester = test

        builder = get_builder('TrynerrorDialog')
        new_object = builder.get_object('trynerror_dialog')
        new_object.finish_initializing(builder)
        return new_object
Exemple #6
0
    def __new__(cls, test):
        """Special static method that's automatically called by Python when 
        constructing a new instance of this class.
        
        Returns a fully instantiated TrynerrorDialog object.
        """
        global tester
        tester = test

        builder = get_builder('TrynerrorDialog')
        new_object = builder.get_object('trynerror_dialog')
        new_object.finish_initializing(builder)
        return new_object
Exemple #7
0
    def __new__(cls, sent):
        """Special static method that's automatically called by Python when 
        constructing a new instance of this class.
        
        Returns a fully instantiated SetstyleDialog object.
        """
        global projection 
        projection = sent.split(':')[0]

        global filename
        filename = sent.split(':')[1]

        global stylesheet
        stylesheet = ''
        global new_stylesheet
        new_stylesheet = ''
        global new_stylesheet2
        new_stylesheet2 = ''
        
        builder = get_builder('SetstyleDialog')
        new_object = builder.get_object('setstyle_dialog')
        new_object.finish_initializing(builder)
        return new_object