Example #1
0
    def create_other_buttons(self):
        f = self.make_frame()

        btn = Checkbutton(f, variable=self.recvar,
                text="Recurse down subdirectories")
        btn.pack(side="top", fill="both")
        btn.invoke()
    def create_option_buttons(self):
        f = self.make_frame("Options")

        btn = Checkbutton(f, variable=self.engine.revar,
                          text="Regular expression")
        btn.pack(side="left", fill="both")
        if self.engine.isre():
            btn.invoke()

        btn = Checkbutton(f, variable=self.engine.casevar, text="Match case")
        btn.pack(side="left", fill="both")
        if self.engine.iscase():
            btn.invoke()

        btn = Checkbutton(f, variable=self.engine.wordvar, text="Whole word")
        btn.pack(side="left", fill="both")
        if self.engine.isword():
            btn.invoke()

        if self.needwrapbutton:
            btn = Checkbutton(f, variable=self.engine.wrapvar,
                              text="Wrap around")
            btn.pack(side="left", fill="both")
            if self.engine.iswrap():
                btn.invoke()
    def create_option_buttons(self):
        f = self.make_frame("Options")

        btn = Checkbutton(f,
                          variable=self.engine.revar,
                          text="Regular expression")
        btn.pack(side="left", fill="both")
        if self.engine.isre():
            btn.invoke()

        btn = Checkbutton(f, variable=self.engine.casevar, text="Match case")
        btn.pack(side="left", fill="both")
        if self.engine.iscase():
            btn.invoke()

        btn = Checkbutton(f, variable=self.engine.wordvar, text="Whole word")
        btn.pack(side="left", fill="both")
        if self.engine.isword():
            btn.invoke()

        if self.needwrapbutton:
            btn = Checkbutton(f,
                              variable=self.engine.wrapvar,
                              text="Wrap around")
            btn.pack(side="left", fill="both")
            if self.engine.iswrap():
                btn.invoke()