Skip to content

Latest commit

 

History

History

DesignExport

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

DelphiVCL4Python - VCL.DesignExport Samples

DelphiVCL4Python - VCL.DesignExport Samples

This is a sample set that shows the use of the Export to Python directly from a Delphi form.

Contents

Location

You can find the DesignExport samples at:

Description

This application demonstrates the Export to Python routine and shows how to export a Delphi Design form to Python:

Using Samples

  1. Open the Experts folder and install the dclDelphiVCLExperts component:
  1. Once installed, now you're able to export any TForm descendant.

  2. Under DesignExport/ choose a sample and open the given project.

  3. Using the Form View, left window Structure->||FORM_NAME|| or on the Form Design.

  4. Press right click and choose Export to Delphi.

  5. A save dialog is displayed. Save it with the same name of the form (by default) - a .py and .pydfm file will be created.

  6. Don't forget to include the app initialization onto your module:


    def main():
        Application.Initialize()        
        Application.Title = "DelphiDesignExport"
        MainForm = MainForm(Application)
        MainForm.Show()
        FreeConsole()
        Application.Run()
        MainForm.Destroy()

    if __name__ == '__main__':
        main()