FPLViewer module

Source file that holds the viewer of the application. All the GUI elements are structured here and ready to be picked up and used by the controller.

Classes in the source file:
  • MainWindow(): Class that holds the main window used in the application’s GUI.

class FPLViewer.MainWindow(parent=None)

Bases: QMainWindow

Class that holds the main window used in the application’s GUI.

set_best15_players_template(gks, defs, mfs, fwds, stats)

Sets the players and stats of the best 15 players template.

Parameters:
  • gks – list of the goalkeepers

  • defs – list of the defenders

  • mfs – list of the midfielders

  • fwds – list of the forwards

  • stats – statistics of the optimisation

set_info_displays(gw, deadline)

Creates the information display of the main window. :param gw: :param deadline:

set_status_display_text(text)

Sets the display text to the status display.

Parameters:

text – Text to be set to the status display.

set_table_view(df)

Sets the dataframe model to the table view.

Parameters:

df – Dataframe to be set to the table view