/[papo]/papo/tools/gpager
ViewVC logotype

Diff of /papo/tools/gpager

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jlenton, Tue Dec 2 21:49:18 2003 UTC revision 1.2 by jlenton, Tue Dec 2 23:57:50 2003 UTC
# Line 1  Line 1 
1  #!/usr/bin/python2.1 -Wall  #!/usr/bin/python2.1 -Wall
2    # -*- python -*- coding: latin1 -*-
3  import sys, os  import sys, os
4  from optik import OptionParser  from optik import OptionParser
5    
# Line 23  stripped = re.sub(r'.|[&\
 
Line 24  stripped = re.sub(r'.|[&\
 
24  lower_stripped = stripped.lower()  lower_stripped = stripped.lower()
25    
26  from gtk import *  from gtk import *
27    from GDK import WATCH
28    
29  font = None  font = None
30  for fontres in options.font:  for fontres in options.font:
# Line 73  def key_pressed(widget, event): Line 75  def key_pressed(widget, event):
75                    
76  def printit(*a):  def printit(*a):
77      status.push(1, "Imprimiendo...")      status.push(1, "Imprimiendo...")
78        cur=cursor_new(WATCH)
79        window.get_window().set_cursor(cur)
80        window.set_sensitive(FALSE)
81      timeout_add(10, really_print)      timeout_add(10, really_print)
82    
83  def really_print(*a):  def really_print(*a):
# Line 84  def really_print(*a): Line 89  def really_print(*a):
89      except Exception, msg:      except Exception, msg:
90          status.pop(1)          status.pop(1)
91          status.push(1, str(msg))          status.push(1, str(msg))
92            window.set_sensitive(TRUE)
93            window.get_window().set_cursor(None)
94            
95    
96  text = GtkText()  text = GtkText()

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26