Changeset 4e1bb7c46ce848faf660a90d7510ab5f8ca7b365

Show
Ignore:
Timestamp:
06/06/09 20:01:39 (3 years ago)
Author:
Nedko Arnaudov <nedko@…>
Children:
f39d91d10209bd8db7b241fe3bb693fba162e99d
Parents:
642917c337ad1f232eb2aa0e58888840120063c7
git-committer:
Nedko Arnaudov <nedko@arnaudov.name> / 2009-06-06T20:01:39Z+0300
Message:

Improve text drawin

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ui

    r642917c r4e1bb7c  
    689689 
    690690        if db % 10 == 0: 
    691             x -= 23 
     691            x -= 20 
    692692            y += 3 
    693693            cairo_ctx.move_to(x, y) 
     
    700700 
    701701    def draw(self, cairo_ctx): 
     702        cairo_ctx.select_font_face("Fixed") 
     703 
    702704        cairo_ctx.set_source_color(self.color_bg) 
    703705        cairo_ctx.rectangle(0, 0, self.width, self.height) 
     
    726728                if hz == 20000: 
    727729                    x -= 15 
    728                 else: 
    729                     x -= 5 
     730                elif hz != 20: 
     731                    x -= 3 
    730732                cairo_ctx.move_to(x, y) 
    731733                cairo_ctx.show_text(label)