Attachment 'test_confirm.py'

Download

   1 #!/usr/bin/python
   2 
   3 import apt
   4 from aptdaemon import gtkwidgets
   5 
   6 class MockTrans(object):
   7     def __init__(self, dep):
   8         self.dependencies = dep
   9         self.download = 1024 * 12
  10         self.space = 1024 * 35 * 1024
  11 
  12 def main():
  13     cache = apt.Cache()
  14     for dep in ([["xterm"], [], [], [], [], [], []],
  15                 [["xterm", "synaptic"], [], [], [], [], [], []],
  16                 [["xterm", "synaptic"], [], ["cw"], [], [], [], []]):
  17         trans = MockTrans(dep)
  18         dia = gtkwidgets.AptConfirmDialog(trans, cache=cache)
  19         dia.run()
  20         dia.hide()
  21 
  22 if __name__ == "__main__":
  23     main()

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2010-04-20 19:14:22, 49.7 KB) [[attachment:gpk.png]]
  • [get | view] (2010-04-20 19:14:41, 45.9 KB) [[attachment:kpackagekit.png]]
  • [get | view] (2010-04-20 19:14:59, 34.7 KB) [[attachment:sc.png]]
  • [get | view] (2010-04-21 18:41:22, 32.0 KB) [[attachment:synaptic.png]]
  • [get | view] (2010-05-03 08:20:17, 0.6 KB) [[attachment:test_confirm.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.