/[gnue]/gnue-pos/src/hardware/receiptprinter/plain.py
ViewVC logotype

Diff of /gnue-pos/src/hardware/receiptprinter/plain.py

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

revision 1.5 by jcater, Mon Jul 7 05:29:13 2003 UTC revision 1.6 by jcater, Thu Jul 17 05:16:44 2003 UTC
# Line 56  class Driver(EventAware): Line 56  class Driver(EventAware):
56      self.instance = instance      self.instance = instance
57      self.__dict__.update(params)      self.__dict__.update(params)
58      self.output = None      self.output = None
59        self.totals = {}
60      self.width = hasattr(self,'width') and self.width or 40      self.width = hasattr(self,'width') and self.width or 40
61    
62      self.totalFields = (  ('subtotal',_('Subtotal')),      self.totalFields = (  ('subtotal',_('Subtotal')),
# Line 133  Transaction # %s Line 134  Transaction # %s
134    def _CancelTicketItem(self, event):    def _CancelTicketItem(self, event):
135      pass      pass
136    
137    
138    def _UpdateTotal(self, event):    def _UpdateTotal(self, event):
139      self.totals[event.field] = event.amount      self.totals[event.field] = event.amount
140    
141    
142    def write(self, text, double=0, color=0, alignment=0):    def write(self, text, double=0, color=0, alignment=0):
     pass  
143        pass

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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