Example #1
0
def dymz():
    appuifw.app.screen='full'
    img=Image.new((240,320))
    img=Image.open("c:\\Data\\X-SMS\\3.jpg")

    img.line((00,5,640,5),0xff0000)
    img.text((25,70), u'To check for updates, visit...',0xff0000)
    img.text((05,85), u'http://www.sirajsoft.com',0xff0000)
    img.line((00,7,640,7),0xff0000)
    img.text((45,20), u'SIRAJ X-SMS',0xff0000)
    img.line((00,34,640,34),0xff0000)
    img.line((00,36,640,36),0xff0000)
    img.text((65,30), u'v1.5',65280)
    img.text((00,160), u'Developed by:',0xff0000)
    img.text((05,178), u'Siraj',65280)
    img.text((10,198), u'www.sirajsoft.com',65280)
    globalui.global_msg_query(u"New version have  Restore And Backup sms options too. Till then have fun with presently functional features \n Thanx for keeping patience.", u"Help")
    def quit():
        global running
        running=0
        appuifw.app.set_exit()


    def handle_redraw(rect):
        canvas.blit(img)

    running=1

    canvas=appuifw.Canvas(event_callback=None, redraw_callback=handle_redraw)
    appuifw.app.body=canvas
    e32.ao_sleep(10)
    img.clear()
    draw()
Example #2
0
def g_2():
    caidan = [cn('左右键文字'), cn('定义快捷键')]
    c = apm(caidan, cn('★高级代码—按键类★'))
    if (c == 0):
        m.add(
            cn("\nimport uitricks\nfrom key_tricks import*\n    uitricks.set_text(cn('\xe8\x87\xaa\xe5\xae\x9a\xe4\xb9\x89\xe5\xb7\xa6\xe9\x94\xae\xe6\x96\x87\xe5\xad\x97'),EAknSoftkeyOptions)\n    uitricks.set_text(cn('\xe8\x87\xaa\xe5\xae\x9a\xe4\xb9\x89\xe5\x8f\xb3\xe9\x94\xae\xe6\x96\x87\xe5\xad\x97'),EAknSoftkeyExit)"
               ))
    elif (c == 1):
        import globalui
        k1 = cn(
            ' 代码:42 (*键) 代码:35 (#键)\n 代码:48 (0键) 代码:49 (1键)\n 代码:50 (2键) 代码:51 (3键)\n 代码:52 (4键) 代码:53 (5键)\n 代码:54 (6键) 代码:55 (7键)\n 代码:56 (8键) 代码:57 (9键)\n 代码:8 (删除键)\n 代码:63495 (导航向左)\n 代码:63496 (导航向右)\n 代码:63497 (导航向上)\n 代码:63498 (导航向下)\n 代码:63554 (左软键)\n 代码:63555 (右软键)\n 代码:63556 (关机键)\n 代码:63557 (确认键)\n 代码:63499 (笔型键)\n 代码:63561 (照相键)\n 代码:63570 (菜单键)\n 代码:63586 (通话键)\n 代码:63587 (挂机键)'
        )
        k2 = cn('\n凤舞九天 开发\n保留所有权利\n\n')
        globalui.global_msg_query((k1 + k2), cn('-=*按键代码大全*=-'))
        m.add(cn('\nappuifw.app.body.bind(按键代码,定义函数)'))
        def thanks():
            globalui.global_msg_query(
                u('''Спасибо всем следующим людям:\n\
Elrian - куда ж без меня:)\n\
motix и vlad007700 - за дельные советы и замечания;\n\
REDNBLACK.sk, werton, K.U, Abdolban, Drfss07, keytujd, maxel85, Ithan, atrant и всем остальным (чьи ники, к сожалению, не сохранились), \
писавшим в комментариях к версиям 1.0-3.2 - за предложения и поддержку;\n\
Всем, еще напишущим в комментарии к версиям >= 4.0 - за  помощь в улучшении программы;\n\
Всем, качавшим файл с http://www.dimonvideo.ru/smart/uploader/4/208942/0/0 - за тестирование;\n\
Неизвестному программисту, еще давно написавшему 3D Tetris под DOS - за идею тетриса в 3D;\n\
DimonVideo - за замечательный сайт;\n\
Гвидо Ван Россуму - за создание языка программирования Python \
(который вообще-то читается как "пайтон" и не имеет никакого отношения к змеям, а только к шоу Monty Python’s Flying Circus);\n\
Персонально ТЕБЕ - за то, что читал все эти благодарности'''),
                u('Благодарности'), 0)
Example #4
0
def test_global_queries():
    result = globalui.global_query(u"global_query", 3)
    print "result from global_query:", result
    result = globalui.global_msg_query(u"global_msg_query", u"MyHeader", 3)
    print "result from global_msg_query:", result
    result = globalui.global_popup_menu([u"item1", u"item2"], u"MyMenu", 3)
    print "result from global_popup_menu:", result
Example #5
0
 def about(self):
     """Opens the About dialog.
     """
     data = {
         "title"  : Const.APP_TITLE,
         "version": Const.APP_VERSION,
         "year"   : Const.APP_YEAR,
         "url"    : Const.APP_URL,
         "author" : Const.APP_AUTHOR,
         "lauthor": _(u"Authors:"),
     }
     text = u"%(title)s v%(version)s (c) %(year)s\n" \
             "%(url)s\n\n"                           \
             "%(lauthor)s\n"                         \
             "%(author)s" % data
     globalui.global_msg_query(text, _(u"About"), 0)
Example #6
0
def show_text_static(text, header=None):
    """Show plain text with scroll bar, waiting for user action.
    """
    # Widget returns integers
    if globalui.global_msg_query(text, header):
        return True
    else:
        return False
Example #7
0
	def __get_info(self, id):
		import globalui
		sql_string = u"SELECT * FROM config WHERE id=%d" % int(id)
		#globalui.global_msg_query( sql_string, u"SQL Debug" )
		self.info_selection = []
		
		try: 
			dbv.prepare(db, sql_string)
		except:
			db.open(self.dbpath)
			dbv.prepare(db, sql_string)
		dbv.get_line()
		for l in range(1, dbv.col_count()+1):
			try:
				self.info_selection.append(dbv.col(l))
			except Exception, err:
				globalui.global_msg_query( unicode(err), u"error" )
Example #8
0
def show_text_static(text, header=None):
    """Show plain text with scroll bar, waiting for user action.
    """
    # Widget returns integers
    if globalui.global_msg_query(text, header):
        return True
    else:
        return False
Example #9
0
def dymzz():
    appuifw.app.screen='full'
    img=Image.open("c:\\Data\\X-SMS\\4.jpg")
    globalui.global_msg_query(u"Great thanks to the Symbian-Freak and his creator Teo aka Apoc and the forum mass makers like Vinumsv ,Wook,Avisek,Lifenexus,Asterolykos,Aloycasmir,Darkzul,Desperados and all Sf friends and posters.Sorry if i miss any.:-).Visit www.SirajSoft.com", u"Help")

    img.text((030,30), u'This app is developed by...',0xff0000)
    img.text((70,55), u'Siraj',0xff0000)
    def quit():
        global running
        running=0
        appuifw.app.set_exit()


    def handle_redraw(rect):
        canvas.blit(img)

    running=1

    canvas=appuifw.Canvas(event_callback=None, redraw_callback=handle_redraw)
    appuifw.app.body=canvas
    e32.ao_sleep(5)
    img.clear()
    draw()
Example #10
0
    def __get_info_prec(self, id):
        import globalui

        # prendo i km precedenti
        if id >= 1:
            sql_string = u"SELECT * FROM fuel WHERE id=%d" % int(id - 1)
            # globalui.global_msg_query( sql_string, u"SQL Debug" )
            self.info_selection_prec = []
        else:
            sql_string = u"SELECT * FROM fuel WHERE id=%d" % int(id)
            # globalui.global_msg_query( sql_string, u"SQL Debug" )
            self.info_selection_prec = []

        try:
            dbv.prepare(db, sql_string)
        except:
            db.open(self.dbpath)
            dbv.prepare(db, sql_string)
        dbv.get_line()
        for l in range(1, dbv.col_count() + 1):
            try:
                self.info_selection_prec.append(dbv.col(l))
            except Exception, err:
                globalui.global_msg_query(unicode(err), u"error")
def test_globalui():
    """ Call global_query, global_note, global_msg_query and global_popup_menu
        of globalui module and test for their response to key press.

    """
    i = 0
    for i in note_type:
        globalui.global_note(text_to_show, i)
    time.sleep(20)
    result = globalui.global_query(u"Do you want to continue?")
    if result == 1:
        globalui.global_note(u"Pressed yes")
    else:
        globalui.global_note(u"Pressed no")
    time.sleep(2)
    result = globalui.global_msg_query(u"i am global message", u"MyHeader")
    result = globalui.global_popup_menu([u"Good", u"Better", u"Best"])
    print "Selected item is: " + str(result)
Example #12
0
def help():
    index = appuifw.popup_menu([cn("使用说明"), cn("配置说明"), cn("图片更换")])
    if index == 0:
        globalui.global_msg_query(
            cn("  点击开始启动程序\n  选择效果可以更换效果\n  点击停止\重置可停止运行或重新开始运行\n  请先停止运行后再退出."
               ), cn("使用说明"))
    elif index == 1:
        globalui.global_msg_query(
            cn("配置文件在c:\\data\\paopao\\data\\sets.ini内\n建议使用dedit以java-utf8编码打开编辑并保存\n编码格式不要修改,否则无法读配置!\n内含初始图片大小\n前十个分别为各飘浮物宽度\n第十一至第二十为高度\n两个小数分别是效果一和二的初始速度,后边的数据暂时无效,但不要改动."
               ), cn("配置说明"))
    elif index == 2:
        globalui.global_msg_query(
            cn("图片保存位置c:\\data\\paopao\\pic,里边有十个jpg格式图片,可以自己更换,建议图片不要太大."),
            cn("更换图片"))
Example #13
0
def about():
    e32.ao_sleep(0.01)
    globalui.global_msg_query(ru("Developer: gauravssnl"), ru("CheckIP"))
Example #14
0
    def about(self):
        e32.ao_sleep(0.01)

        globalui.global_msg_query(
            ru('Developer:\ngauravssnl(Gaurav Singh)\r\nIP Viewer Log Path:\nC://IPViewerlog.txt\nTo view all  different IP properly,please close/diconnect other application which is connected to internet.you can set Find IP to find particular IP.Example: 100.85. OR 100.105. OR 10.100.\nHappy Phreaking.'
               ), ru('IP Viewer v1.3'))
Example #15
0
def about():
    globalui.global_msg_query(
        u'This app helps to create new pastes on pastebin.com from files easily.No need to copy and paste your code now.Pastebin is site for sharing codes easily.You need to have a Pastebin account. Log into your pastebin account first and you need to get your own unique API Key from Pastebin by visiting this URL:\nhttp://pastebin.com/api\nThanks to developers of pastebin_python,requests,cgi and other pys60 developers',
        u'Py Pastebin v1.00.1 beta')
Example #16
0
def about():
    sleep(0.0001)
    globalui.global_msg_query(
        u"Decompiled files and compiled files are created in the same directory where your original file is located.Decompiled files are created with pyc_dis extension.",
        u"Pyc2Py by gauravssnl")
Example #17
0
def helpin():
    globalui.global_msg_query(u"How to use:-\nThis program is to create back up of your smses in your inbox to the format which you select and this supports the formats like doc,txt,html,pdf\nIMPORTANT:\n \n Always before creating backup of the smses  backup the old files using *backup old files* option on menu.", u"Help")
 def about():
     global version
     globalui.global_msg_query(
         u('3D Тетрис\nАвтор: Elrian\nВерсия: %s\nwww.dimonvideo.ru') %
         str(version), u('Об игре'), 0)