Comments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #21 (new enhancement)

Opened 3 years ago

Last modified 3 months ago

include Tix like Tk

Reported by: openticket Owned by: williamcaban
Priority: normal Milestone:
Component: Documentation Version: PyInstaller 1.2
Severity: normal Keywords: Tix
Cc:

Description

Hello, I've not found an email address, so I suggest it here. The following is a TixTree function (like TkTree in Build.py) is a bit more general than ticket:11. Tested only on ActivePython/Win?32.

def TixTree ():
        tixroot = os.path.join (config['TCL_root'], os.path.pardir)
        for root, dirs, files in os.walk (tixroot):
                for i in dirs:
                        if i.startswith ('Tix'):
                                tixroot = os.path.join (tixroot, i)
                                break
        tixroot = os.path.normpath (tixroot)
        print ">>>TIXROOT", tixroot
        tixnm = os.path.join ('_MEI', os.path.basename (tixroot))
        tixdll = None
        for root, dirs, files in os.walk (tixroot):
                for i in files:
                        j = i.lower ()
                        if j.startswith ('tix') and j.endswith ('.dll'):
                                tixdll = (root, i)
        print ">>>TIXDLL", tixdll[1]
        return Tree (tixroot, tixnm) + [(tixdll[1], os.path.join (tixdll[0], tixdll[1]), 'BINARY')]

Attachments

Change History

Changed 8 months ago by Omar

The following version works with python 2.5 : (tix prefix lookup made case insensitive and DLL is searche din PythonROOT\DLLs ....

def TixTree ():
        print config
        tixroot = os.path.join (config['TCL_root'], os.path.pardir)
        for root, dirs, files in os.walk (tixroot):
                for i in dirs:
                        if i.lower().startswith ('tix'):
                                tixroot = os.path.join (tixroot, i)
                                break
        tixroot = os.path.normpath (tixroot)
        print ">>>TIXROOT", tixroot
        tixnm = os.path.join ('_MEI', os.path.basename (tixroot))
        tixdll = None
        dllroot=os.path.join (config['TCL_root'], os.path.pardir, os.path.pardir, "DLLs")
        for root, dirs, files in os.walk (dllroot):
                for i in files:
                        j = i.lower ()
                        if j.startswith ('tix') and j.endswith ('.dll'):
                                tixdll = (root, i)
        print ">>>TIXDLL", tixdll[1]
        return Tree (tixroot, tixnm) + [(tixdll[1], os.path.join (tixdll[0], tixdll[1]), 'BINARY')]

Changed 3 months ago by maul12 <rifa1451@yandex.ru>

Zdrastvuyte ladies and gentlemen,here is набрасал сайтик one and wanted that you his(its) have valued,immediately wanted say that site was tossed on fast hand so do not judge strictly,additions and ешQ that нибудь what comes short site report in коментариях,for me will very useful experience.Short about put:Site is dedicated to  http://gameskids1.narod.ru since in first interesting to create plus a themes is much claimed,on put you are able to look beside 30 new plays,which сейчс play half рунета,there is plays on the most different taste both for детей and for adult аудиторрии,one word judge themselves and voice their own opinions on cause недоработок site and in general on play Respectfully yours Valentin

Add/Change #21 (include Tix like Tk)

Author


E-mail address and user name can be saved in the Preferences.


Action
as new
 
Note: See TracTickets for help on using tickets.