Upload subcircuit component

class subcircuit.uploadSub.UploadSub

This class contain function for uploading subcircuits in SubcircuitLibrary present in src folder. A folder is created in library/SubcircuitLibrary and desired file is moved to that folder.

upload()

This method opens a dialogue box when Upload subcircuit button is clicked and after entering folder name, it opens directory system to chose file for folder, it only shows file with extension .sub and with the name of project entered earlier as folder name.

It then validates file if it is in proper format or not, for it the file is passed to the function validateSub and it returns true if file has valid format or else it shows an error message.