summaryrefslogtreecommitdiff
path: root/OSCAD/subcktEditor/newSubckt.py
diff options
context:
space:
mode:
Diffstat (limited to 'OSCAD/subcktEditor/newSubckt.py')
-rw-r--r--OSCAD/subcktEditor/newSubckt.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/OSCAD/subcktEditor/newSubckt.py b/OSCAD/subcktEditor/newSubckt.py
deleted file mode 100644
index f97f639..0000000
--- a/OSCAD/subcktEditor/newSubckt.py
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/python
-# newSubckt.py is a python script to create a new subcircuit for a component. It developed for OSCAD software. It is written by Yogesh Dilip Save (yogessave@gmail.com).
-# Copyright (C) 2012 Yogesh Dilip Save, FOSS Project, IIT Bombay.
-# This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
-# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-# You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-from Tkinter import *
-import template
-import tkMessageBox
-import os.path
-from string import maketrans
-
-class SubcktInfo(template.MyTemplate):
- """ Class for accept subckt information from user """
- def body(self, master):
- # Ask for compoent name
- Label(master, text="Enter Component name:").grid(row=0)
- self.e1 = Entry(master)
- self.e1.grid(row=0, column=1,pady=10,columnspan=2)
-
-# Collect subckt information
- def apply(self):
- pass
-
-# Validate the subckt information
- def validate(self):
- # Remove trailing and leading spaces from subcktName
- self.subcktName=self.e1.get().strip()
- if len(self.subcktName):
- return 1
- else:
- tkMessageBox.showwarning("Bad input","Component Name is not specified, please try again")
- return 0
-
-if __name__=='__main__':
- root=Tk()
- subckt= SubcktInfo(root)
- mainloop()
-