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.

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