Ejemplo n.º 1
0
 def UpdateCellview(self, design):
     if design == self.mDesign:
         return
     if self.mCloseFun:
         apply(self.mCloseFun, ())
         self.mCloseFun = None
     self.mDesign = design
     self.mNetUtil.UpdateCellview(design)
     self.mTermUtil.UpdateCellview(design)
     self.mInstUtil.UpdateCellview(design)
     s = oaTracerUtl22.getDesObjectRepr(self.mDesign)
     self.mLabel.set(s)
Ejemplo n.º 2
0
    def Display(self):
        if self.mTop != None:
            self.mTop.Raise()
            return

        self.mTop = cWinTop("oaTracer", self.Detach)
        self.mCol = self.mTop.CreateColumn(1)

        row = self.mCol.CreateRow()
        s = oaTracerUtl22.getDesObjectRepr(self.mDesign)
        self.mLabel = cWinLabel(row, s)
        row = self.mCol.CreateRow()
        cWinLabel(row, "Report Log:")

        self.mOut = cWinScrollListbox(self.mCol, size=(-1, 200), minsize=(-1, 200), double_command=self.MenuPickButton)

        row = self.mCol.CreateRow()
        cWinLabel(row, "Pick Object:")
        cWinButton(row, text="Instance", command=self.InstButton)
        cWinButton(row, text="Term", command=self.TermButton)
        cWinButton(row, text="Net", command=self.NetButton)
        cWinButton(row, text="Cell", command=self.CvButton)
        cWinButton(row, text="Browser", command=self.Browser)

        self.CreateOtherButtons()

        self.mCommand = cWinRowEntryButton(self.mCol, "Command:", "Eval", self.EvaluateButton)
        self.mFile = cWinRowEntryButton(self.mCol, "File:", "Run", self.FileButton)

        self.mDirection = cWinRowChoiceButton(
            self.mCol, "Direction:", ["In", "Out", "Bi"], value=2, command=self.DirectionButton
        )
        self.mDepth = cWinRowChoiceButton(
            self.mCol, "Depth:", ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], command=self.DepthButton
        )

        row = self.mCol.CreateRow()
        if self.mClose:
            cWinButton(row, text="Close", command=self.Detach)
        else:
            cWinButton(row, text="Exit", command=self.Detach)
        cWinButton(row, text="History", command=self.HistoryButton)
        # cWinButton(row,text="Report",command=self.ReportButton)

        self.mTop.End()