Hi.
Here' are two small patches for the code in the pygtk-demo/demo
code so the code will execute without warnings about using
deprecated functions. These patches are for the pygtk2
tree.
Thanks. There will be a few more small patches like these
coming, as I'm trying to fix the sample code to
out the lines
handling this case, and in its place used the selected_foreach()
call, which I'm trying to learn how to use. Running the code
below you'll see the printout of the selected lines.
I'm probably overlooking something obvious, and would
appreciate a pointer or two. Thanks in advance.
Art
to everyone working on PyGTK.
Art Haas
Index: gtk/gtk.defs
===
RCS file: /cvs/gnome/gnome-python/pygtk/gtk/gtk.defs,v
retrieving revision 1.99
diff -u -r1.99 gtk.defs
--- gtk/gtk.defs2002/04/18 16:33:59 1.99
+++ gtk/gtk.defs
is not present. I have an older
build directory that doesn't have a docs subdirectory, so
that suggests that a Makefile.am file isn't committed to the
CVS repository yet. Is that the case?
Art Haas
--
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty
(PANGO_LAYOUT(self-obj),
-ink_rect, logical_rect);
+pango_layout_get_pixel_extents(PANGO_LAYOUT(self-obj),
+ ink_rect, logical_rect);
return Py_BuildValue((()()),
ink_rect.x, ink_rect.y,
Art Haas
. The removal of the ! fixed it,
and now things like underlines and styles work.
I've also included again the patch for the pango_layout_get_pixel_extents()
paste-o that I found yesterday. I'll also submit this into Bugzilla.
The patch is against the current CVS version.
Art Haas
Index: pango.override
you're dealing with, and things have worked smoothly with it there.
Good luck with pygtk-2.0.
Art Haas
--
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
-- Benjamin Franklin, Historical Review of Pennsylvania, 1759
On Fri, Sep 27, 2002 at 11:17:59PM +0200, Grzegorz Adam Hankiewicz wrote:
On Thu, Sep 26, 2002 at 06:21:19PM -0500, Art Haas wrote:
If you have a relatively new automake/aclocal, the easiest way
to tell aclocal to look in the /usr/share/aclocal directory is
to create a file called dirlist
and join me in developing PythonCAD into a first class drafting
program!
My thanks go to James Henstridge and all the PyGTK developers
for all their work in creating and maintaining PyGTK.
Art Haas
--
They that can give up essential liberty to obtain a little temporary safety
deserve neither
in developing PythonCAD into a world class drafting
program!
Art Haas
--
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
-- Benjamin Franklin, Historical Review of Pennsylvania, 1759
___
pygtk
easier
to understand in places.
Visit the PythonCAD web site for more information about what PythonCAD
does and aims to be.
http://www.pythoncad.org
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
They that can give up essential liberty to obtain a little
drafting
program!
Art Haas
--
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
-- Benjamin Franklin, Historical Review of Pennsylvania, 1759
___
pygtk mailing list [EMAIL PROTECTED]
http
://www.pythoncad.org
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
-- Benjamin Franklin, Historical Review of Pennsylvania, 1759
2003 21:54:44 -
@@ -1696,7 +1696,7 @@
'(GdkWindow* window (null-ok))
'(gint width)
'(gint height)
-'(gint depth (default -1))
+'(gint depth (default -1))
)
)
Art Haas
--
To announce that there must be no criticism of the President, or that we
are to stand
into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822
___
pygtk
() validation technique is ... and fill in
the ... parts.
If there are more tricks with the gtk.SpinBox() that I'm missing, I'd
welcome some info on that too.
Thanks in advance.
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship
is commented out, then the cursor advances
without problem, but also the validation routine is effectively ignored.
I guess that a default insert-text handler is called, and this handler
does the magic to move the cursor.
Thanks in advance for any cursor-moving advice you can send.
Art Haas
On Tue, Jun 10, 2003 at 02:34:17PM -0700, Shannon -jj Behrens wrote:
I had to do something similar. I recommend the following (pseudocode):
def on_init:
old_text = whatever
def on_changed:
if not is_valid(new_text):
new_text = old_text
else:
the '-' and '+' characters. If they are the
only characters in the entry when a 'focus-out' signal is handled then
the entry box is cleared. I'm still not sure of a good way to test for
these characters yet, but at least now negative numbers can be added in
the entry box.
Art Haas
I quick reply to myself and the list - the 'move-cursor' signal is
commented out in the code I posted, but I _had_ tested my code with the
line uncommented out, and it didn't work. I should have once again
uncommented it before posting to the list.
Art
--
Man once surrendering his reason, has
can one find the color set by modify_bg()?
Thanks in advance.
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822
On Thu, Jun 19, 2003 at 05:50:45PM -0700, John Finlay wrote:
Hi Art,
I don't think you should get the same gtk.gdk.Color object returned from:
da.get_style().bg[gtk.STATE_NORMAL]
even twice in a row. A new gtk.gdk.Color object is created each time. I
assume that the rgb values are
On Thu, Jun 19, 2003 at 08:02:16PM -0500, Art Haas wrote:
On Thu, Jun 19, 2003 at 05:50:45PM -0700, John Finlay wrote:
Hi Art,
I don't think you should get the same gtk.gdk.Color object returned from:
da.get_style().bg[gtk.STATE_NORMAL]
even twice in a row. A new gtk.gdk.Color
On Thu, Jun 19, 2003 at 06:35:59PM -0700, John Finlay wrote:
Hi Art,
I believe that it's the case if you put da in a Window and show() it.
That must be it.
Art
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without
to the people who make
it available.
http://pychecker.sourceforge.net/
Visit the PythonCAD web site for more information about what PythonCAD
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once
to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas
of pygtk?
Art Haas
Index: pygtk/configure.in
===
RCS file: /cvs/gnome/gnome-python/pygtk/configure.in,v
retrieving revision 1.81
diff -u -u -r1.81 configure.in
--- pygtk/configure.in 1 Sep 2003 12:47:39 - 1.81
+++ pygtk
Hi.
Looking at my patch again I don't know why I didn't do it like this
earlier ...
Index: configure.in
===
RCS file: /cvs/gnome/gnome-python/pygtk/configure.in,v
retrieving revision 1.81
diff -u -u -r1.81 configure.in
---
in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822
On Wed, Dec 03, 2003 at 01:23:04PM -0200, Christian Robottom Reis wrote:
On Wed, Dec 03, 2003 at 08:55:10AM +, Alessandro Bottoni wrote:
Most likely you know AutoCAD. Well, I have to write a program like AutoCAD
that should have:
- a graphical area (created with PyGTK)
- a
into a world class drafting
program, and Happy New Year to everyone!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822
the PythonCAD web site for more information about what PythonCAD
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program, and Happy New Year to everyone!
Art Haas
--
Man once surrendering his reason, has no remaining guard against
On Wed, Aug 25, 2004 at 10:34:12PM -0700, Andrew P. Lentvorski, Jr. wrote:
On Aug 25, 2004, at 3:09 PM, Art Haas wrote:
The pango module does currently provied get_line_count(), get_size(),
and get_pixel_size() methods for pango.Layout instances, and these
methods are indespensible
On Thu, Aug 26, 2004 at 12:09:58PM +0100, Gustavo J. A. M. Carneiro wrote:
A Qua, 2004-08-25 ?s 23:09, Art Haas escreveu:
Hi.
My PythonCAD work has lately been in dealing with text, and I'm turning
to the list in an effort to get some suggestions and help.
The root of my
://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James
On Tue, Oct 05, 2004 at 03:17:36AM +0200, Jakub Piotr C??apa wrote:
Maybe you could update the screenshots gallery to reflect new features?
So much of the new stuff is the low level, behind-the-scenes code that
new screenshots wouldn't be useful.
Having said that, some new screenshots on the
the PythonCAD web site for more information about what PythonCAD
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most
site for more information about what PythonCAD
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like
://mail.python.org/mailman/listinfo/pythoncad
Visit the PythonCAD web site for more information about what PythonCAD
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has
to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas
your efforts,
so thanks for all your work.
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822
subscribing and viewing
the mailing list archive:
http://mail.python.org/mailman/listinfo/pythoncad
Visit the PythonCAD web site for more information about what PythonCAD
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art
out my
error. Also, is my comment about the gobjectmodule code correct?
Thanks in advance, and my thanks to everyone working on PyGTK.
Art Haas
$ cat boolact.py
import pygtk
pygtk.require('2.0')
import gobject
class boolAction(gobject.GObject):
__gproperties__ = {
'flag
, otherwise it'll be forgotten?
Once in bugzilla it's automatically going to be on our TODO list and
will be fixed/looked at some point.
Done.
http://bugzilla.gnome.org/show_bug.cgi?id=301346
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most
/listinfo/pythoncad
Visit the PythonCAD web site for more information about what PythonCAD
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against
://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James
!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822
___
pygtk mailing list pygtk@daa.com.au
://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822
list archive:
http://mail.python.org/mailman/listinfo/pythoncad
Visit the PythonCAD web site for more information about what PythonCAD
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering
/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822
site for more information about what PythonCAD
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship
://mail.python.org/mailman/listinfo/pythoncad
Visit the PythonCAD web site for more information about what PythonCAD
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind
/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822
the mailing list archive:
http://mail.python.org/mailman/listinfo/pythoncad
Visit the PythonCAD web site for more information about what PythonCAD
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once
web site for more information about what PythonCAD
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like
the site has always had.
Art Haas
--
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822
___
pygtk mailing list
/mailman/listinfo/pythoncad
Visit the PythonCAD web site for more information about what PythonCAD
does and aims to be:
http://www.pythoncad.org/
Come and join me in developing PythonCAD into a world class drafting
program!
Art Haas
--
Man once surrendering his reason, has no remaining guard
58 matches
Mail list logo