ZBar Bar Code Reader Library  version 0.10
test_pygtk Namespace Reference

Functions

def decoded (zbar, data)
 
def open_button_clicked (button)
 
def set_status_label (opened, enabled)
 
def status_button_toggled (button)
 
def video_changed (widget)
 
def video_enabled (zbar, param)
 
def video_opened (zbar, param)
 

Variables

 cursor_visible
 
 editable
 
 expand
 
 hbox
 
 info
 
 min_height
 
 min_width
 
 open_button
 
 open_file
 
 path
 
 results
 
 status_button
 
 status_image
 
 vbox
 
 video_device
 
 video_list
 
 window
 
 zbar
 

Function Documentation

def test_pygtk.decoded (   zbar,
  data 
)
callback invoked when a barcode is decoded by the zbar widget.
displays the decoded data in the text box
def test_pygtk.open_button_clicked (   button)
callback invoked when the 'Open' button is clicked.  pops up an
'Open File' dialog which the user may use to select an image file.
if the image is successfully opened, it is passed to the zbar
widget which displays it and scans it for barcodes.  results are
returned using the same hook used to report video results
def test_pygtk.set_status_label (   opened,
  enabled 
)
update status button label to reflect indicated state.

Referenced by status_button_toggled(), and video_opened().

Here is the caller graph for this function:

def test_pygtk.status_button_toggled (   button)
callback invoked when the status button changes state
(interactively or programmatically).  ensures the zbar widget
video streaming state is consistent and updates the display of the
button to represent the current state

References set_status_label().

Here is the call graph for this function:

def test_pygtk.video_changed (   widget)
callback invoked when a new video device is selected from the
drop-down list.  sets the new device for the zbar widget,
which will eventually cause it to be opened and enabled
def test_pygtk.video_enabled (   zbar,
  param 
)
callback invoked when the zbar widget enables or disables
video streaming.  updates the status button state to reflect the
current video state
def test_pygtk.video_opened (   zbar,
  param 
)
callback invoked when the zbar widget opens or closes a video
device.  also called when a device is closed due to error.
updates the status button state to reflect the current video state

References set_status_label().

Here is the call graph for this function:

Variable Documentation

test_pygtk.cursor_visible
test_pygtk.editable
test_pygtk.expand
test_pygtk.hbox

Referenced by main(), and TestQZBar.TestQZBar().

test_pygtk.min_height
test_pygtk.min_width
test_pygtk.open_button

Referenced by main().

test_pygtk.open_file
test_pygtk.path
test_pygtk.results
test_pygtk.status_button

Referenced by main().

test_pygtk.status_image
test_pygtk.vbox

Referenced by main(), and TestQZBar.TestQZBar().

test_pygtk.video_list

Referenced by main().

test_pygtk.window
test_pygtk.zbar