You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

func arguments.py 697B

2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import datetime
  2. import os
  3. def get_current_date():
  4. return datetime.datetime.now()
  5. def file_exists(filename):
  6. os.path.exists(filename)
  7. def add(x, y):
  8. return x + y
  9. def assert_equals(message, expected, actual):
  10. if expected != actual: print(message)
  11. def open_window(parent, top, bottom, left, right, modal):
  12. do_something_with(parent, top, bottom, left, right, modal)
  13. class Parent():
  14. def open_modal_window(self, d):
  15. pass
  16. parent = Parent()
  17. top = bottom = left = right = modal = None
  18. open_window(parent, top, bottom, left, right, modal)
  19. dimensions = (top, bottom, left, right)
  20. parent.open_modal_window(dimensions)
  21. def do_something_with(*args):
  22. pass