Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(15)  |  Derive(0)  |  Import(1)

src/t/e/tethical-HEAD/client/GUI.py   tethical(Download)
import functools
from WindowNodeDrawer import WindowNodeDrawer
from BarNodeDrawer import Bar
 
u = 1.0/128.0
        self.frame.setTransparency(True)
 
        bar = Bar(bar='bar-1')
        bar.updateTo(int(float(char['hp'])/float(char['hpmax'])*100))
        self.hpbar = DirectFrame(
        self.hpbar.setTransparency(True)
 
        bar = Bar(bar='bar-2')
        bar.updateTo(int(float(char['mp'])/float(char['mpmax'])*100))
        self.mpbar = DirectFrame(
        self.mpbar.setTransparency(True)
 
        bar = Bar(bar='bar-3')
        bar.updateTo(int(char['ct']))
        self.ctbar = DirectFrame(
        self.frame.setTransparency(True)
 
        bar = Bar(bar='bar-1')
        bar.updateTo(int(float(char['hp'])/float(char['hpmax'])*100))
        self.hpbar = DirectFrame(