Debian Codegraph @

Installer/packages/pep8/installscript.js

raw symbols SCIP
1 function Component(){
2 gui.pageWidgetByObjectName("LicenseAgreementPage").entered.connect(changeLicenseLabels);
3 installer.installationFinished.connect(this, Component.prototype.installationFinishedPageIsShown);
4 installer.finishButtonClicked.connect(this, Component.prototype.installationFinished);
5
6 //gui.pageWidgetByObjectName("Introduction").entered.connect(changeLicenseLabels);
7 }
8
9 Component.prototype.createOperations = function(){
10 component.createOperations();
11 if(installer.value("os") == "win"){
12 component.addOperation("Execute", "@TargetDir@\\vc_redist.x64.exe","/install","/passive", "/norestart","/quiet");
13 component.addOperation("CreateShortcut", "@TargetDir@/Pep8.exe", "@StartMenuDir@/Pep8.lnk",
14 "workingDirectory=@TargetDir@","description=Run Pep8");
15 }
16 }
17 Component.prototype.installationFinishedPageIsShown = function(){
18 /*
19 Attempt at adding another checkbox to add a desktop shortcut
20 try {
21 if (installer.isInstaller() && installer.status == QInstaller.Success) {
22 installer.addWizardPageItem( component, "QCheckBox", installer.InstallationFinished );
23 }
24 } catch(e) {
25 console.log(e);
26 }*/
27 }
28
29 Component.prototype.installationFinished = function(){
30
31 }
32 changeLicenseLabels = function()
33 {
34 //page = gui.pageWidgetByObjectName("LicenseAgreementPage");
35 //page.AcceptLicenseLabel.setText("Yes I do!");
36 //page.RejectLicenseLabel.setText("No I don't!");
37 }