Re: Creating printable reports

2004-07-20 Thread Russell Shaw
Daniel Kasak wrote:
Hi all.
I'm a newbie Perl developer, and I'm part-way through porting our 
database front-ends from Access to Perl / Gtk2 ( running on Linux ).
We need a few printable reports that I have to rebuild. I've started out 
doing them in a Perl CGI script, exporting an HTML 'report' and firing 
up Mozilla to view / print them. This is less than perfect. Mozilla 
doesn't support the @page directive, so controlling pagination and 
headers / footers is a nightmare.

What options do I have with GTK / Gnome?
Requirements are basically headers & footers and pagination, and of 
course Perl bindings, but I'll check this out.
Any takers?
Haven't dealt with text processing for a while but there's a few ways:
- generate the reports directly as TEX or postscript (TEX is hard to learn),
- generate the reports in a word-processor and embed keywords
  in it, and save in TEX or postscript format as a canned file, then
  run sed or C regex lib commands to replace the keywords with your
  own end-user text.
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Creating printable reports

2004-07-20 Thread Daniel Kasak
Hi all.
I'm a newbie Perl developer, and I'm part-way through porting our 
database front-ends from Access to Perl / Gtk2 ( running on Linux ).
We need a few printable reports that I have to rebuild. I've started out 
doing them in a Perl CGI script, exporting an HTML 'report' and firing 
up Mozilla to view / print them. This is less than perfect. Mozilla 
doesn't support the @page directive, so controlling pagination and 
headers / footers is a nightmare.

What options do I have with GTK / Gnome?
Requirements are basically headers & footers and pagination, and of 
course Perl bindings, but I'll check this out.
Any takers?

Thanks!
Dan
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
Title: CanIt Vote for ID 71078






The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote




___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Trouble Installing Pango

2004-07-20 Thread David Necas (Yeti)
On Tue, Jul 20, 2004 at 02:25:09PM -0400, Marshall Lake wrote:
> 
> While trying to install pango 1.5.1 near the (seemingly) end of
> compilation I get the following errors:
> 
> /home/mlake/pango-1.5.1/pango/.libs/libpangoft2-1.0.so: undefined reference to 
> `g_type_instance_get_private'
> /home/mlake/pango-1.5.1/pango/.libs/libpangoft2-1.0.so: undefined reference to 
> `g_type_class_add_private'
> /home/mlake/pango-1.5.1/pango/.libs/libpango-1.0.so: undefined reference to 
> `g_unichar_get_mirror_char'

These are GLib-2.4 things.  You need GLib-2.4.  I'm sure
Pango README mentions this dependency.

Yeti


--
Do not use tab characters. Their effect is not predictable.
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Trouble Installing Pango

2004-07-20 Thread Marshall Lake

While trying to install pango 1.5.1 near the (seemingly) end of
compilation I get the following errors:

/home/mlake/pango-1.5.1/pango/.libs/libpangoft2-1.0.so: undefined reference to 
`g_type_instance_get_private'
/home/mlake/pango-1.5.1/pango/.libs/libpangoft2-1.0.so: undefined reference to 
`g_type_class_add_private'
/home/mlake/pango-1.5.1/pango/.libs/libpango-1.0.so: undefined reference to 
`g_unichar_get_mirror_char'

Can anyone tell me what's going wrong and how I can correct the situation?
Thanks.

-- 
Marshall Lake -- [EMAIL PROTECTED] -- http://mlake.net
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Aligning widgets adjacent to a drawing area...

2004-07-20 Thread David J. Singer

I have an hbox divided into two side-by-side sections.  In the left
section I have a vertical list of gtk text entry boxes (serving as 
editable text labels) and in the right section I have a drawing area.

What I'd like to do is to be able to draw "waveforms" or "traces" in the
drawing area that line up with the text entry boxes (which form the 
labels for each trace).  

To get a rough idea of the sort of effect I'm after (although I should 
stress this is *not* what I'm trying to do as this is not using text
boxes for the labels) take a look at:
http://www.ind.uni-stuttgart.de/Content/HardwareDesignLab/vsim_small.gif

In order to draw the "traces" on the right, I need to know the exact 
size of the text widgets.  I can use gtk_widget_set_size_request() to 
force the size of the text box, but I'm worried that decorations and 
spacings and possible user resource file will make this value unreliable to 
use.

What's the correct way to do this sort of thing?

-- 
David J. Singer
[EMAIL PROTECTED]
"Time flies like an arrow, fruit flies like a banana"

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


RE: Linux Installation Problems

2004-07-20 Thread Daniel Purdy
[snip]
 Oh I'm runing php version 2.4.18 
[/snip]
Oops sorry! that is the kernel version Its php version 4.2.1
___
gtk-list mailing list
[EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Linux Installation Problems

2004-07-20 Thread Daniel Purdy
Hello. I'm attempting to instal php gtk 1.0.0 on a slackware 9.0 box
(running kde). I downloaded the package, unpacked it, ran the
./buildconf (no problems), ran ./configure (no problems) ran make,
problems. I get the following error message upon running make:
Make[3]: *** [gen_piemenu.lo] Error 1
Make[3]: Leaving directory `/usr/tesla/php-gtk-1.0.0/ext/piemenu'
Make[2]: *** [all-recursive] Error 1
Make[2]: Leaving directory `/usr/tesla/php-gtk-1.0.0/ext/piemenu'
Make[1]: *** [all-recursive] Error 1
Make[1] Leaving directory `/usr/tesla/php-gtk-1.0.0/ext/'
Make: *** [all-recursive] Error 1

I have no idea what this means other than not good. It would be greatly
appreciated if someone could give me a kick in the right direction!
TIA!
Daniel
Oh I'm runing php version 2.4.18
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


Win32 modal dialog problem.

2004-07-20 Thread John Gill




I've been having problems with modal dialogs on win32.

Specifically, if I have a modal dialog which in turn pops up a modal dialog then I find that the second dialog comes up behind the first dialog -- it gets the focus correctly and is indeed modal, but it is concealed by the original window.

Under linux everything works as expected :)

I can get the win32 version to work a little better by setting the original window to be non-modal before popping up the second modal dialog.

See attached pygtk code for a demonstration of the problem.

Is this a bug in the win32 version of gtk or am I doing something wrong?

John


"""
Test windows modal stuff.
"""
import gtk

class App(gtk.Window):

def __init__(self):

gtk.Window.__init__(self)
self.set_size_request(400, 250)
vbox = gtk.VBox()
self.add(vbox)
button = gtk.Button('Press Me')
button.connect('clicked', self.on_button)
vbox.pack_start(button)

quit = gtk.Button('Quit')
quit.connect('clicked', self.on_quit)
vbox.pack_start(quit)
self.show_all()
self.connect('destroy', gtk.mainquit)
self.set_modal(True)

def on_quit(self, *args):

self.destroy()
gtk.mainquit()

def on_button(self, *args):

NestedDialog(self)


class NestedDialog(gtk.Dialog):

# Set to false to see buggy behaviour on windows
Kludge = True

def __init__(self, parent):
""" Dialog to let user chose values to filter. """

# Initialise Dialog base class
gtk.Dialog.__init__(
self, 'Filter', parent,
gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
(gtk.STOCK_OK, gtk.RESPONSE_OK,
 gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL))

self.set_size_request(400, 250)

self.vbox.pack_start(gtk.Label('Simple nesting test'),
 expand=True, fill=True)

self.show_all()

# Tell parent it is not modal
if self.Kludge:
pmodal = parent.get_modal()
parent.set_modal(False)

response = self.run()

# Re-set modality of parent
if self.Kludge:
parent.set_modal(pmodal)

self.process_response(response)

def process_response(self, response):
""" Process dialog response """

if response == gtk.RESPONSE_OK:
NestedDialog(self)

self.destroy()


if __name__ == '__main__':
import sys

sys.path.insert(0, 'E:\work\python')

app = App()
gtk.main()
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list