Advertising
- Stuff
- Tuesday, September 4th, 2007 at 6:58:15pm UTC
- #/usr/bin/ev python
- from AppInstall.activation import ActivationStyle
- from AppInstall.AppInstall import AppInstall as App
- class FakeOptions(object):
- def __init__(self):
- self.datadir = "data"
- self.desktopdir = "test/data"
- self.cachedir = "test/data/cache"
- self.transient_for = None
- self.addon_cd = None
- self.mime_type = None
- self.test_mode = True
- class PkgInstallActivationStyle(ActivationStyle):
- def __init__(self):
- self.selectFilter = None
- self.menuFilter = None
- self.isInstallerOnly = True
- def isSpecific(self): return True
- def modifyUserInterface(self, app):
- app.scrolledwindow_left.hide()
- #app.window_main.hide()
- class PkgInstallApp(App):
- def menu(self):
- pass
- if __name__ == '__main__':
- style = PkgInstallActivationStyle()
- #style = ActivationStyle()
- style.preRun()
- options = FakeOptions()
- app = PkgInstallApp(options, style)
- # chiama la funzione giusta
- #app.applyChanges(to_add, to_rm)
- app.run()
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.