eric4.Packagers.CxfreezeConfigDialog

Module implementing a dialog to enter the parameters for cxfreeze.

Classes

CxfreezeConfigDialog Class implementing a dialog to enter the parameters for cxfreeze.

Functions

None


CxfreezeConfigDialog

Class implementing a dialog to enter the parameters for cxfreeze.

Derived from

QDialog, Ui_CxfreezeConfigDialog

Methods

CxfreezeConfigDialog Constructor
__initializeDefaults Private method to set the default values.
__splitIt Private method to split a string.
accept Protected slot called by the Ok button.
generateParameters Public method that generates the commandline parameters.
on_extListFileButton_clicked Private slot to select the external list file.
on_sharedLibButton_Clicked Private slot to select the Python shared library.
on_targetDirButton_clicked Private slot to select the target directory.

CxfreezeConfigDialog (Constructor)

CxfreezeConfigDialog(ppath, parms = None, parent = None)

Constructor

ppath
project path of the current project (string)
parms
parameters to set in the dialog
parent
parent widget of this dialog

CxfreezeConfigDialog.__initializeDefaults

__initializeDefaults()

Private method to set the default values.

These are needed later on to generate the commandline parameters.

CxfreezeConfigDialog.__splitIt

__splitIt(s, sep)

Private method to split a string.

It differs from Pythons implementation in the way, that it returns an empty list, if the split is attempted on an empty string.

s
string to split (string)
sep
separator string (string)
Returns:
list of split values

CxfreezeConfigDialog.accept

accept()

Protected slot called by the Ok button.

It saves the values in the parameters dictionary.

CxfreezeConfigDialog.generateParameters

generateParameters()

Public method that generates the commandline parameters.

It generates a QStringList to be used to set the QProcess arguments for the cxfreeze call and a list containing the non default parameters. The second list can be passed back upon object generation to overwrite the default settings.

Returns:
a tuple of the commandline parameters and non default parameters (QStringList, dictionary)

CxfreezeConfigDialog.on_extListFileButton_clicked

on_extListFileButton_clicked()

Private slot to select the external list file.

It displays a file selection dialog to select the external list file, the list of include modules is written to.

CxfreezeConfigDialog.on_sharedLibButton_Clicked

on_sharedLibButton_Clicked()

Private slot to select the Python shared library.

It displays a file selection dialog to select the Python shared library.

CxfreezeConfigDialog.on_targetDirButton_clicked

on_targetDirButton_clicked()

Private slot to select the target directory.

It displays a directory selection dialog to select the directory the files are written to.

Up