summaryrefslogtreecommitdiff
path: root/source3/python
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-09-03 01:56:05 +0000
committerTim Potter <tpot@samba.org>2002-09-03 01:56:05 +0000
commit62d6c7f8f836d46e423e4150b7fab1cd7bd61d63 (patch)
tree3755c2480e7acb40d8c61f3402d63af3b287d588 /source3/python
parent2e93f20c1b10f98de79f76a18e5d34b1465edfbf (diff)
downloadsamba-62d6c7f8f836d46e423e4150b7fab1cd7bd61d63.tar.gz
samba-62d6c7f8f836d46e423e4150b7fab1cd7bd61d63.tar.bz2
samba-62d6c7f8f836d46e423e4150b7fab1cd7bd61d63.zip
Display printerdata values in hex.
(This used to be commit cdd64e0860bf05b115e0d107f6cb2b9e1f6d0e9b)
Diffstat (limited to 'source3/python')
-rwxr-xr-xsource3/python/gprinterdata3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/python/gprinterdata b/source3/python/gprinterdata
index cd04e6f5a1..52c6e42719 100755
--- a/source3/python/gprinterdata
+++ b/source3/python/gprinterdata
@@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
-from gtkdictbrowser import GtkDictBrowser
+from gtkdictbrowser import GtkDictBrowser, hex_string
import gtk
import spoolss
import string
@@ -33,6 +33,7 @@ except:
# Create interface
db = GtkDictBrowser(t)
+db.register_get_value_text_fn("", hex_string)
db.build_ui('gprinterdata')
# Override Python's handling of ctrl-c so we can break out of the