Install
Pylint
from Install. If you have anaconda already installed usepip install -U pylint
to update thePylint
so thatpyreverse
is added to the scripts folder.You need to install Graphviz as the pyreverse generates the UML diagrams in dot format and needs the dot.exe provided by Graphviz. Once Graphviz is installed make sure the bin folder is added to the
PATH
variable so that pyreverse can find it at run time. "the command pyreverse generates the diagrams in all formats that graphviz/dot knows." (ReferenceNow add the path of python modules for which you want to generate the documentation to PYTHONPATH.
Use pyreverse -S <modulename> to generate dot files in the current folder
Usage:
- In this course, you'll learn
- The fundamentals of the Python programming language : 1 hr
- Store data using Python data types and variables : 1 hr
- Use complex data structures like lists, sets, dictionaries, and tuples to store collections of related data : 2 hr
- Use conditionals and loops to control the flow of code : 3 hr
- Define and document your own custom functions, write scripts, and handle errors : 3 hr
- How to find and use modules in the Python Standard Library and other third-party libraries : 2 hr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon Oct 22 19:26:07 2018 | |
@author: hnambur | |
""" | |
from tkinter import Label,Entry,Button,Tk | |
class Converter: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlite3 | |
class DatabaseOperations: | |
def __init__(self): | |
self.database_name = 'phonebook.db' | |
# Get the connection | |
def get_db_connection(self): | |
conn = sqlite3.connect(self.database_name) | |
return conn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon Oct 22 20:26:38 2018 | |
@author: hnambur | |
""" | |
from tkinter import Frame,Tk,Label,Entry,Scrollbar,Listbox,Button,END,VERTICAL | |
from DbCon import DatabaseOperations as db | |
class phonebook(Frame): | |
def __init__(self,master): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://python.berkeley.edu/learn/#practice |