예제 #1
0
파일: RenderDialog.py 프로젝트: RaKl/MapRoj
    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
예제 #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
예제 #3
0
 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
예제 #4
0
 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
예제 #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
예제 #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
예제 #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