f311.explorer.gui package

Submodules

f311.explorer.gui.a_XExplorer module

Explorer window.

class f311.explorer.gui.a_XExplorer.XExplorer(parent=None, dir_='.', _flag_set_dir=True)

Bases: QMainWindow

“F311 Explorer” window

Parameters:
  • parent=None

  • dir_="." – directory name

  • _flag_set_dir=True – will not set directory if False (testing purpose only)

closeEvent(self, QCloseEvent)
eventFilter(self, QObject, QEvent) bool
on_cd(_=None)
on_cd2()
on_collect_errors(_=None)
on_listWidgetVis_itemDoubleClicked(item)
on_load(_=None)
on_load_as(_=None)
on_refresh(_=None)
on_tableWidget_cellDoubleClicked(row, col)
on_tableWidget_customContextMenuRequested(position)
on_timer_changed_timeout()
selectionChanged(*args)
set_dir(dir_)

Sets directory, auto-loads, updates all GUI contents.

f311.explorer.gui.a_XFileMainWindow module

class f311.explorer.gui.a_XFileMainWindow.MyPage(text_tab='', flag_changed=False, text_saveas='Save as...', text_load='Load...', cls_save=None, clss_load=(), wild='*.*', editor=None, flag_autosave=False)

Bases: object

Object holding data related to one tab in a XFileMainWindowBase object

property flag_op
make_text_load()
make_text_saveas()
class f311.explorer.gui.a_XFileMainWindow.NullEditor

Bases: object

Class to fulfill requirement in XFileMainWindow, easiest way out, no bother

f = None
class f311.explorer.gui.a_XFileMainWindow.XFileMainWindow(*args, **kwargs)

Bases: XFileMainWindowBase

Application template with file operations in two tabs: (application area) and (log)

class f311.explorer.gui.a_XFileMainWindow.XFileMainWindowBase(parent=None, fobjs=None)

Bases: XLogMainWindow

Application template with file operations in two tabs: (application area) and (log)

Parameters:
  • parent – passed to QMainWindow constructor

  • fobjs – sequence of DataFile objects to be loaded by their respective editors

closeEvent(self, QCloseEvent)
keyPressEvent(evt)

This handles Ctrl+PageUp, Ctrl+PageDown, Ctrl+Tab, Ctrl+Shift+Tab

load(fobj, index=None)

Loads given DataFile object. tolerant with None

Parameters:
  • fobj – object of one of accepted classes

  • index – tab index to load fobj into. If not passed, loads into current tab

load_filename(filename, index=None)

Loads file given filename

Parameters:
  • filename

  • index – tab index to load file into. If not passed, loads into current tab

load_many(fobjs=None)

Loads as many files as the number of pages

Parameters:

fobjs – [filename or DataFile obj, …]

on_load()
on_reset()
on_save()
on_save_all()
on_save_as()

f311.explorer.gui.a_XSelectDataFile module

class f311.explorer.gui.a_XSelectDataFile.XSelectDataFile(parent=None)

Bases: QDialog

Window to select a DataFile descendant

property cls

f311.explorer.gui.a_XText module

XText: Window to show text; XHTML: window to show HTML.

class f311.explorer.gui.a_XText.XHTML(parent=None, html='', title='')

Bases: QMainWindow

Parameters:
  • parent=None – nevermind

  • html – string

class f311.explorer.gui.a_XText.XText(parent=None, text='', title='')

Bases: QMainWindow

Parameters:
  • parent=None – nevermind

  • text – string

Module contents

Source files for the Graphical User Interface applications in this package