Re: [pygtk] Still an MDI bug in gnome-python 1.0.51?
Sorry about not mentioning it, but I included this fix in my last commit. It will be included in the next release. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Sun, 20 Feb 2000, Hassan Aurag wrote: > File > "/var/tmp/gnome-python-root/usr/lib/python1.5/site-packages/gnome/ui. > py", line 1163, in __call__ > aa[i] = _obj2inst(args[i]) > NameError: aa > > I think this is an error! > > > > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
[pygtk] Still an MDI bug in gnome-python 1.0.51?
Title: Still an MDI bug in gnome-python 1.0.51? File "/var/tmp/gnome-python-root/usr/lib/python1.5/site-packages/gnome/ui.py", line 1163, in __call__ aa[i] = _obj2inst(args[i]) NameError: aa I think this is an error!
Re: [pygtk] 2 Typos in gtk.py
I have applied the fix. It will be included in the next release. Thanks. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Sat, 19 Feb 2000, Martin Preishuber wrote: > Matt Wilson wrote: > > > I don't see the problem in the latest release. What are you looking > > at? 1.0.51? > > > > Matt > > hmmm line wrapping fault: > > > > def get_hadjustment(self): > > > return GtkAdjusment(_obj= > > ^^ here's the t missing > > > > def get_vadjustment(self): > > > return GtkAdjusment(_obj= > > > > ^ and here > > it's in 1.0.51 and in the cvs version > > Martin > > -- > Martin Preishuber - Student, ECLiPt Core Member, SysAdmin > http://eclipt.uni-klu.ac.at, > mailto:[EMAIL PROTECTED] > > ... I want to perform cranial activities with Tuesday Weld!! > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED] > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
Re: pygnome 1.0.51 was Re: [pygtk] 2 Typos in gtk.py
I think the spec files should be up to date in the newer pygtk/gnome-python. Just run: rpm -ta gnome-python-1.0.51.tar.gz instead of rpm --rebuild gnome-python-1.0.51-1.src.rpm This seems just as easy as supplying srpms. James. -- Email: [EMAIL PROTECTED] WWW: http://www.daa.com.au/~james/ On Sat, 19 Feb 2000, Hassan Aurag wrote: > > Btw, > > Any news of redhat rpms srpms for the new package? > > I think we should have a repository of srpms (no rpms needed since > many arch's) > kept up-to-date by rhlabs if possible? > > I really don't like to use tar.gz for file tracking reasons, like : > what the heck is this file doing here? What does it do? > > > Thanks > > H. Aurag > > > > > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED] > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
Re: pygnome 1.0.51 was Re: [pygtk] 2 Typos in gtk.py
Hassan Aurag wrote: > > Btw, > > Any news of redhat rpms srpms for the new package? > > I think we should have a repository of srpms (no rpms needed since > many arch's) > kept up-to-date by rhlabs if possible? > > I really don't like to use tar.gz for file tracking reasons, like : > what the heck is this file doing here? What does it do? > > Thanks I always make rpms of current versions of pygtk/gnome-python ... you can find it at ftp://eclipt.uni-klu.ac.at/pub/people/mpreishu/ Martin -- Martin Preishuber - Student, ECLiPt Core Member, SysAdmin http://eclipt.uni-klu.ac.at, mailto:[EMAIL PROTECTED] ... I want to perform cranial activities with Tuesday Weld!! To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
pygnome 1.0.51 was Re: [pygtk] 2 Typos in gtk.py
Btw, Any news of redhat rpms srpms for the new package? I think we should have a repository of srpms (no rpms needed since many arch's) kept up-to-date by rhlabs if possible? I really don't like to use tar.gz for file tracking reasons, like : what the heck is this file doing here? What does it do? Thanks H. Aurag To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
Re: [pygtk] 2 Typos in gtk.py
Matt Wilson wrote: > I don't see the problem in the latest release. What are you looking > at? 1.0.51? > > Matt hmmm line wrapping fault: > > def get_hadjustment(self): > > return GtkAdjusment(_obj= ^^ here's the t missing > > def get_vadjustment(self): > > return GtkAdjusment(_obj= > > ^ and here it's in 1.0.51 and in the cvs version Martin -- Martin Preishuber - Student, ECLiPt Core Member, SysAdmin http://eclipt.uni-klu.ac.at, mailto:[EMAIL PROTECTED] ... I want to perform cranial activities with Tuesday Weld!! To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
Re: [pygtk] 2 Typos in gtk.py
I don't see the problem in the latest release. What are you looking at? 1.0.51? Matt On Sat, Feb 19, 2000 at 03:40:38PM +0100, Martin Preishuber wrote: > Hi, > > Still not knowing how to get the height of the title column of > the clist widget I'm playing around a lot and found 2 typos > in gtk.py (~line 1258, GtkCList): > > def get_hadjustment(self): > return GtkAdjusment(_obj= > > _gtk.gtk_clist_get_hadjustment(self._o)) > > ^ should be GtkAdjustment (t is missing) > > def get_vadjustment(self): > return GtkAdjusment(_obj= > > _gtk.gtk_clist_get_vadjustment(self._o)) > > ^ same here > > btw. I'd still be happy if anyone could give me some idea > for getting the column height of the title column ;-) > > Martin > > -- > Martin Preishuber - Student, ECLiPt Core Member, SysAdmin > http://eclipt.uni-klu.ac.at, > mailto:[EMAIL PROTECTED] > > ... I want to perform cranial activities with Tuesday Weld!! > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED] To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
[pygtk] Emit the "changed" signal
I have converted from C version on seciotn 8.5 in "GTK v 1.2 Tutorial" to PyGTK version. But it seems that it doesn't emit the "changed" signal to reconfigure all the widgets that are attached to the adjustment. Can you tell me what problems my program has? Thanks. -- - Deok Hwan Kim [EMAIL PROTECTED] #!/usr/bin/env python from gtk import * hscale = None vscale = None def cb_pos_menu_select(item, pos): hscale.set_value_pos(pos) vscale.set_value_pos(pos) def cb_update_menu_select(item, policy): hscale.set_update_policy(policy) vscale.set_update_policy(policy) def cb_digits_scale(adj): hscale.set_digits(adj.value) vscale.set_digits(adj.value) def cb_page_size(get, set): set.page_size = get.value set.page_incr = get.value set.changed() def cb_draw_value(button): hscale.set_draw_value(button.active) vscale.set_draw_value(button.active) def make_menu_item(name, callback, data): item = GtkMenuItem(name) item.connect("activate", callback, data) item.show() return item def scale_set_default_values(scale): scale.set_update_policy(UPDATE_CONTINUOUS) scale.set_digits(1) scale.set_value_pos(POS_TOP) scale.set_draw_value(TRUE) def create_range_controls(): global vscale, hscale window = GtkWindow(WINDOW_TOPLEVEL) window.connect("destroy", mainquit) window.set_title("range controls") box1 = GtkVBox(homogeneous = FALSE, spacing = 0) window.add(box1) box1.show() box2 = GtkHBox(homogeneous = FALSE, spacing = 10) box2.set_border_width(10) box1.pack_start(box2, expand = TRUE, fill = TRUE, padding = 0) box2.show() adj1 = GtkAdjustment(value = 0.0, lower = 0.0, upper = 101.0, step_incr = 0.1, page_incr = 1.0, page_size = 1.0) vscale = GtkVScale(adj1) scale_set_default_values(vscale) box2.pack_start(vscale, expand = TRUE, fill = TRUE, padding = 0) vscale.show() box3 = GtkVBox(homogeneous = FALSE, spacing = 10) box2.pack_start(box3, expand = TRUE, fill = TRUE, padding = 0) box3.show() hscale = GtkHScale(adj1) hscale.set_usize(200, 30) scale_set_default_values(hscale) box3.pack_start(hscale, expand = TRUE, fill = TRUE, padding = 0) hscale.show() scrollbar = GtkHScrollbar(adj1) scrollbar.set_update_policy(UPDATE_CONTINUOUS) box3.pack_start(scrollbar, expand = TRUE, fill = TRUE, padding = 0) scrollbar.show() box2 = GtkHBox(homogeneous = FALSE, spacing = 10) box2.set_border_width(10) box1.pack_start(box2, expand = TRUE, fill = TRUE, padding = 0) box2.show() button = GtkCheckButton("Display value on scale widgets") button.set_active(TRUE) button.connect("toggled", cb_draw_value) box2.pack_start(button, expand = TRUE, fill = TRUE, padding = 0) button.show() box2 = GtkHBox(homogeneous = FALSE, spacing = 10) box2.set_border_width(10) label = GtkLabel("Scale Value Position:") box2.pack_start(label, expand = FALSE, fill = FALSE, padding = 0) label.show() opt = GtkOptionMenu() menu = GtkMenu() item = make_menu_item("Top", cb_pos_menu_select, POS_TOP) menu.append(item) item = make_menu_item("Bottom", cb_pos_menu_select, POS_BOTTOM) menu.append(item) item = make_menu_item("Left", cb_pos_menu_select, POS_LEFT) menu.append(item) item = make_menu_item("Right", cb_pos_menu_select, POS_RIGHT) menu.append(item) opt.set_menu(menu) box2.pack_start(opt, expand = TRUE, fill = TRUE, padding = 0) opt.show() box1.pack_start(box2, expand = TRUE, fill = TRUE, padding = 0) box2.show() box2 = GtkHBox(homogeneous = FALSE, spacing = 10) box2.set_border_width(10) label = GtkLabel("Scale Update Policy:") box2.pack_start(label, expand = FALSE, fill = FALSE, padding = 0) label.show() opt = GtkOptionMenu() menu = GtkMenu() item = make_menu_item("Continuous", cb_update_menu_select, UPDATE_CONTINUOUS) menu.append(item) item = make_menu_item("Discontinuous", cb_update_menu_select, UPDATE_DISCONTINUOUS) menu.append(item) item = make_menu_item("Delayed", cb_update_menu_select, UPDATE_DELAYED) menu.append(item) opt.set_menu(menu) box2.pack_start(opt, expand = TRUE, fill = TRUE, padding = 0) opt.show() box1.pack_start(box2, expand = TRUE, fill = TRUE, padding = 0) box2.show() box2 = GtkHBox(homogeneous = FALSE, spacing = 10) box2.set_border_width(10) label = GtkLabel("Scale Digits:"); box2.pack_start(label, expand = FALSE, fill = FALSE, padding = 0) label.show() adj2 = GtkAdjustment(value = 1.0, lower = 0.0, upper = 5.0, step_incr = 1.0, page_incr = 1.0, page_size = 0.0) adj2.connect("value_changed", cb_digits_scale) scale = GtkHScale(adj2) scale.set_digits(0) box2.pack_start(s
[pygtk] 2 Typos in gtk.py
Hi, Still not knowing how to get the height of the title column of the clist widget I'm playing around a lot and found 2 typos in gtk.py (~line 1258, GtkCList): def get_hadjustment(self): return GtkAdjusment(_obj= _gtk.gtk_clist_get_hadjustment(self._o)) ^ should be GtkAdjustment (t is missing) def get_vadjustment(self): return GtkAdjusment(_obj= _gtk.gtk_clist_get_vadjustment(self._o)) ^ same here btw. I'd still be happy if anyone could give me some idea for getting the column height of the title column ;-) Martin -- Martin Preishuber - Student, ECLiPt Core Member, SysAdmin http://eclipt.uni-klu.ac.at, mailto:[EMAIL PROTECTED] ... I want to perform cranial activities with Tuesday Weld!! To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]