Re: [pygtk] gtk.Assistant

2010-10-11 Thread Mauro Giacomini
Il 11/10/2010 19:45, Pietro Battiston ha scritto: I write a pseudo-code that can hel you and the others to identify my problem. class MyAssistant: def __init__(self): step_one() step_two() step_finale() def step_one(self): text to welcome the user

Re: [pygtk] gtk.Assistant

2010-10-11 Thread Pietro Battiston
Il giorno lun, 11/10/2010 alle 19.09 +0200, Mauro Giacomini ha scritto: > Hi, > I have a problem with the creation of an Assistant. Ehm... which problem? Pietro > I want to collect information from the user. > In the first page I have a treeview with 3 button (move_up, move_down > and apply). >

[pygtk] gtk.Assistant

2010-10-11 Thread Mauro Giacomini
Hi, I have a problem with the creation of an Assistant. I want to collect information from the user. In the first page I have a treeview with 3 button (move_up, move_down and apply). Until the user don't click on Apply Button, the navigation on the Assistant is unsensitive. When the user finishe

[pygtk] selectable paper size in page setup dialog

2010-10-11 Thread golnaz nilieh
I created a PrintOperation and set A4 size for its default paper size, using code below: self.operation = gtk.PrintOperation() self.page_setup = gtk.PageSetup() self.page_setup.set_paper_size_and_default_margins(gtk.PaperSize(gtk.PAPER_NAME_A4)) self.operation.set_

Re: [pygtk] AttributeError: 'module' object has no attribute 'DrawingArea'

2010-10-11 Thread John Stowers
On Mon, 2010-10-11 at 19:42 +1300, Rob Brown-Bayliss wrote: > Hi > > Does any one know why am I getting this error in the attached file? > Why can't I use DrawingArea in gtk? Because the attached file is called cairo.py; it calls "import gtk", which during import I presume calls "import cairo", w