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 |
|
|
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: |
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): |
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() |