Beispiel #1
0
    def SubmitButton(self,button):
         
         GenerateDot(self)
	
         DisplayImage(self)  
     
         self._hbox_UnScaled.hide()
         self._hbox_Scaled.show() 
        
         return
Beispiel #2
0
    def UnScaled(self, button):
         
         # [Set the configuration to display the Scaled button and hide the Unscaled button] 
         self._hbox_UnScaled.hide()
         self._hbox_Scaled.show()    
         
         # subprocess.call(["ls", "-l", "lcctm.png"])
	
         DisplayImage(self)

         # [Horizontal box container ends with the scrolled_window variable]  
	 #self._hbox.pack_end(self.Scrolled_Window,True, True, 8)    	
 	 return   
Beispiel #3
0
 def wsWrite_checkbox(self, widget, checkbox):
     if self._initial == "1":
        return
     wsWrite_checkbox = checkbox.get_active()
     if wsWrite_checkbox:
        self._wsWrite = "1"
     else:
        self._wsWrite = "0"
     GenerateDot(self)
     DisplayImage(self)
     self._hbox_UnScaled.hide()
     self._hbox_Scaled.show()  
     return  
Beispiel #4
0
    def memRW_checkbox(self, widget, checkbox):
    
        # [Return if initial button is pressed]
        if self._initial == "1":
           return

        memRW_checkbox = checkbox.get_active()

        if memRW_checkbox:
           self._memRW = "1"
        else:
           self._memRW = "0"

        GenerateDot(self)
        DisplayImage(self)

        # [Set the configuration to display the UnScaled button and hide the Scaled button] 
        self._hbox_UnScaled.hide()
        self._hbox_Scaled.show()  
        return  
Beispiel #5
0
    def InitialButton(self, button):

        if self._wsAnaFlag==1:
                #print "hoge"
            self._mem = "1"  
            self._ins = "0"
            self._cycle = "0"
            self._cpi = "0"  
            self._bpi = "0"
            self._bpc = "0"
            self._ibf = "0"  
            self._flop = "0"
            self._dependency = "0"
            self._eqTHR = "0"
            self._memRW = "0"  
            self._wsPage = "1"  
            self._wsRead = "1"  
            self._wsWrite = "1"  
        else:
            self._mem = "1"  
            self._ins = "1"
            self._cycle = "0"
            self._cpi = "0"  
            self._bpi = "0"
            self._bpc = "0"
            self._ibf = "0"  
            self._flop = "1"
            self._dependency = "0"
            self._eqTHR = "0"
            self._memRW = "0"  
            self._wsPage = "0"  
            self._wsRead = "0"  
            self._wsWrite = "0"  

        if (self._filename.replace(self._CWD,"") == "/lcct.dat"):
            self._dep = "0"
        else:
            self._dep = "1"

        #print self._dep
      
         # [Setting the default value for topN box]
        self._topN = "8"
        self._entry_TopN.set_text("8") 
        self._entry_Thr.set_text("")
         
        GenerateDot(self)
        
        DisplayImage(self)

         # [Set the configuration to display the UnScaled button and hide the Scaled button] 
        self._hbox_UnScaled.hide()
        self._hbox_Scaled.show() 

        if self._exstatus:
            self.check_box0.set_active(True)
        else:
            self.check_box0.set_active(False)

        if self._exstatus:
            self.check_box1.set_active(True)
        else:
            self.check_box1.set_active(False)   
         
        self.check_box2.set_active(False)
        self.check_box3.set_active(False)
        self.check_box4.set_active(False)
        self.check_box5.set_active(False)
        self.check_box6.set_active(False)
         
        if self._exstatus:
            self.check_box7.set_active(True)
        else:
            self.check_box7.set_active(False)
         
        self.check_box8.set_active(False) 
        self.check_box9.set_active(False)        
        
         # [Execution for initial button is finished]
        self._initial = "0"
        return