zt = u"Sans MT 936_s60", 15, 1 import appuifw as ui, e32 import os import graphics as ph, base64, thread, os, random # from BingyiApp import * import akntextutils2 import math from graphics import * from qqcontrols import * # import fontSize cn = lambda x: x.decode("u8") sleep = e32.ao_sleep import mypath mypath = mypath.getmypath("\\python\\pysoft\\pyqq\\") cachePath = mypath + "cache\\" #圆角矩形 def rim(a, b, c, d, e=1): if (a, b) < (c, d): if e == 1: return (a, b + 1, a + 1, b + 1, a + 1, b, c - 1, b, c - 1, b + 1, c, b + 1, c, d - 1, c - 1, d - 1, c - 1, d, a + 1, d, a + 1, d - 1, a, d - 1) elif e == 2: return (a, b + 2, a + 1, b + 1, a + 2, b, c - 2, b, c - 1, b + 1, c, b + 2, c, d - 2, c - 1, d - 1, c - 2, d, a + 2, d, a + 1, d - 1, a, d - 2) elif e == 3:
# -*- coding: utf-8 -*- # import requests import urllib import hashlib import httplib import os import graphics as ph, e32 import simplejson as json import thread import mypath mypath = mypath.getmypath("\\python\\pysoft\\ithome\\") cachePath = mypath + "cache\\" class Tops: def __init__(self, data): self.live = data.has_key('live') and data['live'] or 0 self.client = data['client'] self.device = data['device'] self.topplat = data['topplat'] self.title = data['title'] self.newsid = data['newsid'] self.postdate = data['postdate'] self.orderdate = data['orderdate'] self.description = data['description'] self.image = data['image'] self.hitcount = data['hitcount'] self.commentcount = data['commentcount']
# -*- coding: utf-8 -*- zt = u"Sans MT 936_s60", 15, 1 import thread import graphics as ph, appuifw as ui, e32 # from BingyiApp import * # import akntextutils2 import math from graphics import * #import fontSize cn = lambda x: x.decode("u8") sleep = e32.ao_sleep import mypath mypath = mypath.getmypath("\\python\\pysoft\\iniche\\") cachePath = mypath + "cache\\" import inichenet itnet = inichenet.IthomeNet() # 所有界面状态 class AllForm: def __init__(self): # 加载界面 self.loading = 0 # 主界面 self.main = 1 # 菜单