Windows

Creates some common dialogs/windows using Gtk, which can be used in designing Experiment scenarios

Message Window

class octopus_sensing.windows.message_window.MessageWindow(title: str, message: str, button_label: str = 'Ok', width: int = 500, height: int = 200)[source]

Bases: gi.overrides.Gtk.Window

Creating a message window using Gtk It has a button which by clicking on it, The window will be closed

Parameters
  • title (str) – Window title

  • message (str) – The message text

  • width (int, default: 500) – The width of questionnaire window in pixel

  • height (int, default: 200) – The height of questionnaire window in pixel

show() None[source]

Shows the message

Image Window

class octopus_sensing.windows.image_window.ImageWindow(image_path, timeout, monitor_no=0)[source]

Bases: gi.overrides.Gtk.Window

Creates a Gtk window with a message for informing the participant about something It has a continue button which by clicking on it, the window will be destroyed

Parameters
  • image_path (str) – The path of image

  • timeout (int) – The time period for displaying the image

  • monitor_no (int, default: 0) – The ID of monitor for displaying of image. It can be 0, 1, …

show_window()[source]

Timer Window

class octopus_sensing.windows.timer_window.TimerWindow(title: str, message: str = '', width: int = 400, height: int = 200, font_size=20)[source]

Bases: gi.overrides.Gtk.Window

Creates a Gtk window with a timer It is like a button which by clicking on it, the timer window will be destroyed

Parameters
  • title (str) – Title of window

  • message (str:) – A messageto be displayed on the window

  • width (int, default: 400) – The width of questionnaire window in pixel

  • height (int, default: 200) – The height of questionnaire window in pixel

  • font_size (str) – The font size for displaying the text

show_window()[source]

Shwos timer window