示例#1
0
 def __init__(self):
     """Initialize an :class:`Application` object."""
     aeidon.Observable.__init__(self)
     self._delegations = {}
     self.clipboard = aeidon.Clipboard()
     self.counter = itertools.count(1)
     self.extension_manager = gaupol.ExtensionManager(self)
     self.notebook = None
     self.notebook_separator = None
     self.output_window = None
     self.pages = []
     self.pattern = ""
     self.player = None
     self.player_box = None
     self.player_toolbar = None
     self.recent_manager = Gtk.RecentManager.get_default()
     self.replacement = ""
     self.seekbar = None
     self.statuslabel = None
     self.uim = None
     self.volume_button = None
     self.window = None
     self.x_clipboard = None
     self._init_delegations()
     self._init_gui()
     self.extension_manager.find_extensions()
     self.extension_manager.setup_extensions()
     self.update_gui()
     self.window.show()
示例#2
0
 def __init__(self, framerate=None, undo_limit=None):
     """Initialize a :class:`Project` object."""
     aeidon.Observable.__init__(self)
     framerate = framerate or aeidon.framerates.FPS_23_976
     self._delegations = {}
     self.calc = aeidon.Calculator(framerate)
     self.clipboard = aeidon.Clipboard()
     self.framerate = framerate
     self.main_changed = 0
     self.main_file = None
     self.redoables = []
     self.subtitles = []
     self.tran_changed = None
     self.tran_file = None
     self.undo_limit = undo_limit
     self.undoables = []
     self.video_path = None
     self._init_delegations()
示例#3
0
 def setup_method(self, method):
     self.clipboard = aeidon.Clipboard()