Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hal_glib
- class WCMC:
- def __init__(self, halcomp):
- self.halcomp = halcomp
- self.linuxcnc = linuxcnc.STATE_ESTOP
- self.c = hal.component("core_sim")
- self.builder = gtk.Builder()
- self.builder.add_from_file("WCMC.glade")
- self.machine_on = hal_glib.GPin(core_sim.newpin('machine_on', hal.HAL_BIT, hal.HAL_IN))
- self.window = self.builder.get_object("wcmc_Main")
- if self.window:
- self.window.connect("destroy", gtk.main_quit)
- dic = {
- "on_button1_clicked":self.machine_on
- }
- self.builder.connect_signals(dic)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement