def setup_method(self, method): window1 = nfoview.Window(self.new_nfo_file()) window2 = nfoview.Window(self.new_nfo_file()) nfoview.main.windows.append(window1) nfoview.main.windows.append(window2) self.dialog = nfoview.PreferencesDialog(Gtk.Window()) self.rgba = Gdk.RGBA(red=1, green=0, blue=1)
def open_window(self, path=None): try: window = nfoview.Window(path) self.add_window(window) window.present() except Exception as error: print("Failed to open {!r}: {!s}".format(path, error), file=sys.stderr) traceback.print_exc()
def open_window(self, path=None): """Open `path` in a new window and present that window.""" try: window = nfoview.Window(path) self.add_window(window) window.present() except Exception as error: print("Failed to open {}: {}".format(repr(path), str(error)), file=sys.stderr) traceback.print_exc()
def open_window(path=None): """Open file in a new window and present that window.""" try: window = nfoview.Window(path) except Exception as error: print("Failed to open {}: {}".format(repr(path), str(error)), file=sys.stderr) return window.connect("delete-event", _on_window_delete_event) windows.append(window) window.present()
def test_resize_to_text__blank(self): self.window = nfoview.Window() self.window.resize_to_text()
def setup_method(self, method): self.window = nfoview.Window(self.new_nfo_file())