Movies2HDD
A simple set of python scripts and libraries to work with movies. I use it with my DreamBox.
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
movies2hdd.gui.Step1 Class Reference
Inheritance diagram for movies2hdd.gui.Step1:

Public Member Functions

def __init__
 
def func_folder_selection
 
def func_series_selection
 
def validatePage
 

Public Attributes

 layout
 
 introduction
 
 form
 
 folder_selection
 
 series_selection
 
 lang
 

Detailed Description

Definition at line 47 of file gui.py.

Constructor & Destructor Documentation

def movies2hdd.gui.Step1.__init__ (   self,
  parent = None 
)

Definition at line 48 of file gui.py.

48 
49  def __init__(self, parent=None):
50  super(Step1, self).__init__(parent)
51  self.setTitle("Select the folder and the series")
52  self.layout = QVBoxLayout()
53  self.introduction = QLabel("First, you need to select the folder where the movies are or should be placed. The name of the series is needed, too.")
54  self.introduction.setWordWrap(True)
55  self.layout.addWidget(self.introduction)
56  self.form = QFormLayout()
57  self.folder_selection = QPushButton("Select")
58  self.registerField("folder_selection", self.folder_selection)
59  self.folder_selection.clicked.connect(self.func_folder_selection)
60  self.form.addRow(self.tr("Select &folder:"), self.folder_selection)
61  self.series_selection = QPushButton("Select")
62  self.registerField("seriesid", self.series_selection)
63  self.series_selection.clicked.connect(self.func_series_selection)
64  self.form.addRow(self.tr("Select &series:"), self.series_selection)
65  self.layout.addLayout(self.form)
66  self.setLayout(self.layout)
67 
68  self.lang = QLineEdit()
69  self.registerField("lang", self.lang)
70 

Member Function Documentation

def movies2hdd.gui.Step1.func_folder_selection (   self)

Definition at line 71 of file gui.py.

71 
72  def func_folder_selection(self):
73  folder = QFileDialog.getExistingDirectory()
74  self.folder_selection.setText(folder)
75  self.setField("folder_selection", folder)
def movies2hdd.gui.Step1.func_series_selection (   self)

Definition at line 76 of file gui.py.

76 
77  def func_series_selection(self):
78  seriesselection = SeriesSelection(self)
79  seriesselection.setWindowModality(Qt.WindowModal)
80  seriesselection.show()
def movies2hdd.gui.Step1.validatePage (   self)

Definition at line 81 of file gui.py.

81 
82  def validatePage(self):
83  if self.folder_selection.text() != "Select" and self.series_selection != "Select" and self.folder_selection.text() != "":
84  return(True)
85  else:
86  msg.setText("You need to select a folder and a series first.")
87  msg.show()
88  return(False)

Member Data Documentation

movies2hdd.gui.Step1.folder_selection

Definition at line 56 of file gui.py.

movies2hdd.gui.Step1.form

Definition at line 55 of file gui.py.

movies2hdd.gui.Step1.introduction

Definition at line 52 of file gui.py.

movies2hdd.gui.Step1.lang

Definition at line 67 of file gui.py.

movies2hdd.gui.Step1.layout

Definition at line 51 of file gui.py.

movies2hdd.gui.Step1.series_selection

Definition at line 60 of file gui.py.


The documentation for this class was generated from the following file: