×

Trigonometry Puzzle Game

I have been working on a project for the 9th graders. They had a small puzzle game where they were supposed to find trigonometric ratios and built the puzzle piece by piece by colouring it. Children liked it and as a team...

Read out all

Python Learning

This week I had a good time with python. Yes, I have learnt few things which I feel worth to share here. Counter: It is an unordered collection where elements are stored as dictionary keys and their counts are stored as dictionary...

Read out all

Linear, Log and exponent plots – Sratch

I was always confused with log. Sometimes its difficult for me  to handle log based problems . So, I decided to do project in log in scratch to visualize the curve and also to get a clear picture of that.  I started...

Read out all

Matplotlib Animation – calling animation from a function

Creating Animation in Matplotlib: #—————————————————————————— # ANIMATION- DYNAMIC PLOTS #—————————————————————————— import matplotlib.pyplot as plt import matplotlib.animation as animation from matplotlib.figure import Figure import time def animated_plot(): def data_gen(t=0): “”” Generator – generating data to plot the graph “”” cnt = 0 while...

Read out all

Passing ‘Global Variable’ across the files in Python

Passing global variable – Attachment I have encounter a situation where i need to pass a variable from one file to another file. This is like passing global variable across the files. I’ve created three files to demonstrate this as follows, main.py  ...

Read out all

Tooltip for Canvas items

Tooltip : Attachment  Tooltip: I am presently  creating a GUI in python. One of features is when I go on top of any button it should show the name of the button.  Tooltip can do this in python. Unfortunately it doesn’t work with...

Read out all

Installation of standalone python34

STEP1: Download python34 (python3.4.0 msi)  from following website, https://www.python.org/downloads/release/python-340/ After you have installed it go to command terminal(cmd) and put this python in your path as first priority PATH=C:\Python34;C:\Python34\Scripts;%PATH%     (or) Go to Control Panel -> System and Security -> System ->  Advanced system settings...

Read out all

Running python3.3 from python 2.7

After installing py33 using the following commands conda update conda conda create -n py33 python=3.3 anaconda activate py33 Some files need to copied over from Anaconda to py33. Click on the link below to download the documentation. Spyder3Doc

Read out all

zfill in python

Description The method zfill() pads string on the left with zeros to fill width. Syntax Following is the syntax for zfill() method Parameters width — This is final width of the string. This is the width which we would get after filling...

Read out all

Tkinter Toplevel Widget

The Toplevel widget work pretty much like Frame, but it is displayed in a separate, top-level window. Such windows usually have title bars, borders, and other “window decorations”. The Toplevel widget is used to display extra application windows, dialogs, and other “pop-up”...

Read out all