예제 #1
0
    def add_complex_formula_setting(
        self,table,i,form,name,param,order,param_type):
        
        widget = self.make_numeric_entry(
                form,param,order)

        table.attach(widget,1,2,i,i+1,gtk.EXPAND | gtk.FILL ,0,0,0)

        widget = self.make_numeric_entry(
                form,param,order+1)

        table.attach(widget,1,2,i+1,i+2,gtk.EXPAND | gtk.FILL ,0,0,0)

        name = self.param_display_name(name,param)
        fway = fourway.T(name)
        tip = self.param_tip(name,param)
        fway.widget.set_tooltip_text(tip)
        
        fway.connect('value-changed',self.fourway_released, order, form)

        if self.parent:
            fway.connect(
                'value-slightly-changed',
                self.parent.on_drag_param_fourway, order, param_type)
        
        table.attach(fway.widget,0,1,i,i+2, gtk.EXPAND|gtk.FILL,0, 0,0)
예제 #2
0
    def add_fourway(self, name, tip, axis, is4dsensitive):
        my_fourway = fourway.T(name)
        self.toolbar.add_widget(
            my_fourway.widget,
            tip,
            None)

        my_fourway.axis = axis
        
        my_fourway.connect('value-slightly-changed', self.on_drag_fourway)
        my_fourway.connect('value-changed', self.on_release_fourway)

        if is4dsensitive:
            self.four_d_sensitives.append(my_fourway.widget)
예제 #3
0
 def testAddToWindow(self):
     w = gtk.Window()
     f = fourway.T("wibble")
     w.add(f.widget)
     w.show()
     gtk.main_iteration()
예제 #4
0
 def testCreate(self):
     f = fourway.T("hello")
     self.failUnless(f)
예제 #5
0
 def testAddToWindow(self):
     w = Gtk.Window()
     f = fourway.T("wibble")
     w.add(f)
     w.show()
     Gtk.main_iteration()
예제 #6
0
 def testCreate(self):
     f = fourway.T("hello")
     self.assertTrue(f)