Beispiel #1
0
    def __init__(self, master, app):
        CNCRibbon.ButtonGroup.__init__(self, master, "Config", app)
        self.grid3rows()

        # ===
        col, row = 0, 0
        b = Ribbon.LabelRadiobutton(self.frame,
                                    image=Utils.icons["config"],
                                    text=_("Machine"),
                                    compound=LEFT,
                                    anchor=W,
                                    variable=app.tools.active,
                                    value="CNC",
                                    background=Ribbon._BACKGROUND)
        b.grid(row=row, column=col, padx=0, pady=0, sticky=NSEW)
        tkExtra.Balloon.set(b, _("Machine configuration for bCNC"))
        self.addWidget(b)

        # ---
        row += 1
        b = Ribbon.LabelRadiobutton(self.frame,
                                    image=Utils.icons["font"],
                                    text=_("Fonts"),
                                    compound=LEFT,
                                    anchor=W,
                                    variable=app.tools.active,
                                    value="Font",
                                    background=Ribbon._BACKGROUND)
        b.grid(row=row, column=col, padx=0, pady=0, sticky=NSEW)
        tkExtra.Balloon.set(b, _("Font configuration"))
        self.addWidget(b)

        # ---
        row += 1
        b = Ribbon.LabelRadiobutton(self.frame,
                                    image=Utils.icons["color"],
                                    text=_("Colors"),
                                    compound=LEFT,
                                    anchor=W,
                                    variable=app.tools.active,
                                    value="Color",
                                    background=Ribbon._BACKGROUND)
        b.grid(row=row, column=col, padx=0, pady=0, sticky=NSEW)
        tkExtra.Balloon.set(b, _("Color configuration"))
        self.addWidget(b)

        # ===
        col, row = 1, 0
        b = Ribbon.LabelRadiobutton(self.frame,
                                    image=Utils.icons["shortcut"],
                                    text=_("Shortcuts"),
                                    compound=LEFT,
                                    anchor=W,
                                    variable=app.tools.active,
                                    value="Shortcut",
                                    background=Ribbon._BACKGROUND)
        b.grid(row=row, column=col, padx=0, pady=0, sticky=NSEW)
        tkExtra.Balloon.set(b, _("Shortcuts"))
        self.addWidget(b)
Beispiel #2
0
	def __init__(self, master, app):
		CNCRibbon.ButtonGroup.__init__(self, master, N_("Probe"), app)

		self.tab = StringVar()
		# ---
		col,row=0,0
		b = Ribbon.LabelRadiobutton(self.frame,
				image=Utils.icons["probe32"],
				text=_("Probe"),
				compound=TOP,
				variable=self.tab,
				value="Probe",
				background=Ribbon._BACKGROUND)
		b.grid(row=row, column=col, padx=5, pady=0, sticky=NSEW)
		tkExtra.Balloon.set(b, _("Simple probing along a direction"))

		# ---
		col += 1
		b = Ribbon.LabelRadiobutton(self.frame,
				image=Utils.icons["level32"],
				text=_("Autolevel"),
				compound=TOP,
				variable=self.tab,
				value="Autolevel",
				background=Ribbon._BACKGROUND)
		b.grid(row=row, column=col, padx=5, pady=0, sticky=NSEW)
		tkExtra.Balloon.set(b, _("Autolevel Z surface"))

		# ---
		col += 1
		b = Ribbon.LabelRadiobutton(self.frame,
				image=Utils.icons["endmill32"],
				text=_("Tool"),
				compound=TOP,
				variable=self.tab,
				value="Tool",
				background=Ribbon._BACKGROUND)
		b.grid(row=row, column=col, padx=5, pady=0, sticky=NSEW)
		tkExtra.Balloon.set(b, _("Setup probing for manual tool change"))
Beispiel #3
0
    def __init__(self, master, app):
        CNCRibbon.ButtonGroup.__init__(self, master, "CAM", app)
        self.grid3rows()

        # ===
        col, row = 0, 0
        b = Ribbon.LabelRadiobutton(self.frame,
                                    image=Utils.icons["cut32"],
                                    text=_("Cut"),
                                    compound=TOP,
                                    anchor=W,
                                    variable=app.tools.active,
                                    value="Cut",
                                    background=Ribbon._BACKGROUND)
        b.grid(row=row, column=col, rowspan=3, padx=1, pady=0, sticky=NSEW)
        tkExtra.Balloon.set(
            b, _("Cut for the full stock thickness selected code"))
        self.addWidget(b)

        # ===
        col, row = 1, 0
        b = Ribbon.LabelRadiobutton(self.frame,
                                    image=Utils.icons["profile32"],
                                    text=_("Profile"),
                                    compound=TOP,
                                    anchor=W,
                                    variable=app.tools.active,
                                    value="Profile",
                                    background=Ribbon._BACKGROUND)
        b.grid(row=row, column=col, rowspan=3, padx=1, pady=0, sticky=NSEW)
        tkExtra.Balloon.set(b,
                            _("Perform a profile operation on selected code"))
        self.addWidget(b)

        # ===
        col, row = 2, 0
        b = Ribbon.LabelRadiobutton(self.frame,
                                    image=Utils.icons["pocket"],
                                    text=_("Pocket"),
                                    compound=LEFT,
                                    anchor=W,
                                    variable=app.tools.active,
                                    value="Pocket",
                                    background=Ribbon._BACKGROUND)
        b.grid(row=row, column=col, padx=0, pady=0, sticky=NSEW)
        tkExtra.Balloon.set(b,
                            _("Perform a pocket operation on selected code"))
        self.addWidget(b)

        # ---
        row += 1
        b = Ribbon.LabelRadiobutton(self.frame,
                                    image=Utils.icons["drill"],
                                    text=_("Drill"),
                                    compound=LEFT,
                                    anchor=W,
                                    variable=app.tools.active,
                                    value="Drill",
                                    background=Ribbon._BACKGROUND)
        b.grid(row=row, column=col, padx=0, pady=0, sticky=NSEW)
        tkExtra.Balloon.set(
            b, _("Insert a drill cycle on current objects/location"))
        self.addWidget(b)

        # ---
        row += 1
        b = Ribbon.LabelRadiobutton(self.frame,
                                    image=Utils.icons["tab"],
                                    text=_("Tabs"),
                                    compound=LEFT,
                                    anchor=W,
                                    variable=app.tools.active,
                                    value="Tabs",
                                    background=Ribbon._BACKGROUND)
        b.grid(row=row, column=col, padx=0, pady=0, sticky=NSEW)
        tkExtra.Balloon.set(b, _("Insert holding tabs"))
        self.addWidget(b)