How to print the calendar of any year in Python using Tkinter

To create a Graphical User Interface (GUI) calendar, where users can input their year of choice, press enter, and obtain a calendar for each month of the year, we can make use of multiple GUI packages. One of the easiest to use is the ‘tkinter’ package available in Python. The packages used in this tutorial …

How to print the calendar of any year in Python using Tkinter Read More »

Capturing mouse positions after every given interval in JavaScript

In this tutorial, we will see capturing mouse positions after every given interval in JavaScript. On the first click, a timer of 5 seconds will start and on ending the start time and the X and Y-coordinates of mouse positions will be displayed in the form of a JavaScript object. The event handlers we will …

Capturing mouse positions after every given interval in JavaScript Read More »

Difference between mouseover, mouseenter and mousemove events in JavaScript.

In this tutorial, we will learn the difference between mouseover, mouseenter and mousemove events in JavaScript. Events in JavaScript provide a dynamic interface to the webpage. There are wide variety of events such as user clicking, moving the mouse over an element, etc. Events that occur when the mouse interacts with the HTML document falls …

Difference between mouseover, mouseenter and mousemove events in JavaScript. Read More »

How to return a function as a return value in Python

Python return statement: A return statement is used to end the execution of the function call and “returns” the result (value of the expression following the return keyword) to the caller. The statements after the return statement is without any expression, then the special value None is returned. A return statement is overall used to invoke a …

How to return a function as a return value in Python Read More »

How to pass a function as an argument in Python

Passing function as an argument in Python: A function can take multiple arguments can be objects, variables(of same or different data types) and functions. Python functions are first class objects. In the example below, a function is assigned to a variable. This assignment doesn’t call the function. It takes the function object referenced by shout …

How to pass a function as an argument in Python Read More »

Scroll to Top