<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<title>Hello, world!</title>
</head>
<body>
<h1>Hello, world!</h1>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
</body>
</html>
Thursday, May 1, 2025
Bootstrap 4 Setup, First Page
JavaScript If Else, Functions
In programming if and else are conditional statements used to execute different blocks of code based on whether a certain condition is true or false.
if is used to specify a block of code to be executed if a certain condition is true. If the condition is false, the block of code inside the if statement is skipped and the program moves on to the next statement.
For example, if (x > 10) means that the code inside the curly braces {} will be executed only if the value of x is greater than 10.
else is used to specify a block of code to be executed if the if condition is false. If the condition is true, the block of code inside the else statement is skipped and the program moves on to the next statement.
<!DOCTYPE html>
<html>
<head>
<!-- <script src="main.js"></script> -->
</head>
<body>
<script>
if (50 == 150) {
document.write("They are same");
} else {
alert("They are different");
}
</script>
</body>
</html>
The JavaScript code uses an if-else statement to compare if 50 is equal to 150. Since this condition is false, the code inside the else block is executed, which displays an alert message saying "They are different". The result will be an alert box with the message "They are different" when the HTML file is loaded in a web browser.
<!DOCTYPE html>
<html>
<head>
<!-- <script src="main.js"></script> -->
</head>
<body>
<script>
function same() {
document.write("Number equal to 1000");
}
function different() {
document.write("They are different");
}
var glob_var = 1000;
if (glob_var == 1000) {
same();
} else {
different();
}
</script>
</body>
</html>
This JavaScript code defines two functions named same and different. It then declares a global variable glob_var and initializes it to 1000.
The code then checks if the value of glob_var is equal to 1000 using an if statement. If the condition is true, the same function is called and it will print "Number equal to 1000". If the condition is false, the different function is called and it will print "They are different".
In this case, since glob_var is equal to 1000, the same function will be called and it will print "Number equal to 1000".
Using functions to simplify source code is a good programming practice. It makes the code more modular and easier to read, understand, and maintain.
Functions allow you to break down your code into smaller, more manageable pieces, which can be reused in different parts of your program.
This helps to avoid repeating code and reduces the chances of errors or bugs in your code. In addition, functions can make it easier to test your code and make changes to it, since you can test and modify individual functions without affecting the rest of your program.
JavaScript User Agent
The user agent string provided by the browser through the navigator.userAgent property is a useful piece of information that can be used by websites and web applications to provide a better user experience, troubleshoot issues, or track usage statistics.
Here are some common use cases for the user agent string:
-
Browser and feature detection: Websites can use the user agent string to detect which browser and version the user is using, as well as which features are supported by the browser. This information can be used to customize the website's appearance and functionality based on the user's browser.
-
Debugging and troubleshooting: Developers can use the user agent string to debug issues reported by users, such as browser compatibility or performance problems. By analyzing the user agent string, developers can identify which browser and version the user is using, and whether the issue is specific to that browser or more general.
-
Analytics and tracking: Websites can use the user agent string to collect usage statistics, such as the number of users using a particular browser or operating system. This information can be used to optimize the website's performance and improve user experience.
However, it's important to note that the user agent string can be manipulated or spoofed by users, making it less reliable for certain use cases. Additionally, some browsers may provide different user agent strings for different modes or configurations, which can further complicate its use.
<!DOCTYPE html>
<html>
<head>
<!-- <script src="main.js"></script> -->
</head>
<body>
<script>
document.write(navigator.appCodeName + "<br>");
document.write(navigator.product + "<br>");
document.write(navigator.appVersion + "<br>");
document.write(navigator.userAgent + "<br>");
document.write(navigator.platform + "<br>");
document.write(navigator.language + "<br>");
document.write(navigator.onLine + "<br>");
</script>
</body>
</html>
Within the script block, the code uses the "document.write" method to output the following information about the user's web browser:
- navigator.appCodeName: The code name of the browser.
- navigator.product: The name of the browser.
- navigator.appVersion: The version number of the browser.
- navigator.userAgent: A string containing the user agent header sent by the browser to the server.
- navigator.platform: The platform on which the browser is running.
- navigator.language: The language of the browser.
- navigator.onLine: A Boolean value indicating whether the browser is currently connected to the internet.
By using these properties, the code can display useful information about the user's browser, such as the browser type and version, the platform it's running on, and whether the user is currently connected to the internet.
<!DOCTYPE html>
<html>
<head>
<!-- <script src="main.js"></script> -->
</head>
<body>
<script>
document.write("<h1>I know what you did last summer: <br><br>"
+ navigator.userAgent+ "</h1>");
</script>
</body>
</html>
The code uses the "document.write" method to output an HTML header tag (h1) containing a message and the user agent string. The message says "I know what you did last summer:", followed by two line breaks (br tags).
The "navigator.userAgent" property is a string that contains information about the user agent header sent by the browser to the server. This information can include details about the browser type, version number, and operating system.
By concatenating the user agent string with the message, the code creates a personalized message for the user that includes the details of their browser.
JavaScript Reverse, Push, Sort
Brief explanation of each of these JavaScript array methods:
-
reverse(): This method is used to reverse the order of the elements in an array. It modifies the original array and returns the reversed array. -
push(): This method is used to add one or more elements to the end of an array. It modifies the original array and returns the new length of the array. -
sort(): This method is used to sort the elements of an array in ascending order by default, or based on a provided comparison function. It modifies the original array and returns the sorted array.
<!DOCTYPE html>
<html>
<head>
<!-- <script src="main.js"></script> -->
</head>
<body>
<script>
var old_pl = new Array("Cobol", "Fortran", "Algol");
//Reverse
document.write(old_pl.reverse() + "<br>");
//Push New Elements
old_pl.push("Basic", "Asembler", "Simula");
document.write("After Push: " + old_pl + "<br>");
//Sort Elements
old_pl.sort();
document.write("After Sorting: "+ old_pl);
</script>
</body>
</html>
This script creates an array called old_pl with three elements: "Cobol", "Fortran", and "Algol". Then, three array methods are called on the old_pl array.
The first method is reverse(), which reverses the order of the elements in the old_pl array. The resulting reversed array is output to the webpage using the document.write() method.
The second method is push(), which adds three new elements to the end of the old_pl array: "Basic", "Assembler", and "Simula". The modified array is output to the webpage using the document.write() method.
Finally, the sort() method is called on the old_pl array to sort the elements in alphabetical order. The sorted array is output to the webpage using the document.write() method.
The resulting output of this script would be:
Algol,Fortran,Cobol
After Push: Algol,Fortran,Cobol,Basic,Assembler,Simula
After Sorting: Algol,Assembler,Basic,Cobol,Fortran,Simula
The first line shows the reversed old_pl array, with the elements in reverse order. The second line shows the old_pl array after the push() method has added the new elements. The third line shows the old_pl array after the sort() method has sorted the elements in alphabetical order.
C Tutorial
- C Tutorial - Setup and First Compilation
- C Tutorial - Line by Line - Detailed Explanations
- C Tutoria - Variables, Data Types, Format Specifiers
- C Tutoria - Constants and Comments
- C Tutorial - Simple Calculator
- C Tutorial - User Input
- C Tutorial - If..Else
- C Tutorial - If..Else with User Input
- C Tutorial - Switch Statement with User Input
- C Tutorial - For Loop with User Input
- C Tutorial - While and Do..While Loop
- C Tutorial - Break and Continue
- C Tutorial - Arrays
- C Tutorial - Strings
- C Tutorial - Pointers
- C Tutorial - Pointer to Pointer
- C Tutorial - Functions
- C Tutorial - Function Parameters
- C Tutorial - Return from Function
- C Tutorial - Structures
- C Tutorial - Typedef
- C Tutorial - Unions
- C Tutorial - getchar() and putchar() Functions
- C Tutorial - gets() and puts() Functions
- C Tutorial - How to Write to a File in C
- C Tutorial - How to Read from a File in C
- C Tutorial - Read Integer Values from a Text File in C
- C Tutorial - Write a Structure to a Text File with C
C Examples:
- C Program - Copy the Content of One File to Another File with User Input
- C Program - Print the Sum of All Elements in an Array
- C Program - Check Whether a Number is Positive or Negative using If Statement
- C Program - Nested If in C Programming Example
- C Program - Find ASCII Value of a Character Entered by User
- C Program - Print ASCII Value of a Characters inside C Array or String using a For Loop
- C Program - Find the Size of int, float, double and char
- C Program - Find the Average of Two Numbers with User Input
- C Program - Find the Average of Integers using a Function with Return Value
- C Program - Find Greatest of Three Numbers using If Statement
- C Program - Generate Multiplication Table with User Input
- C Program - Multiplication Table of a Numbers in a Given Range
- C Program - Display Characters from A to Z Using For Loop
- C Program - Check if Number is Even or Odd
- C Program - Check if Numbers are Even in Range from 1 to n
- C Program - Check whether an Alphabet is Vowel or Consonant
- C Program - Convert Lowercase String to Uppercase String
- C Program - Convert Uppercase String to Lowercase String
- C Program - Display All Alphabets And SKIP Special Characters
- C Program - Calculate Power of a Number using While Loop
- C Program - Calculate Power of a Number using pow() function
- C Program - Power of a Number for Elements inside C Array
- C Program – Find Length of a String without strlen() Function
- C Program - Get the String Length with While Loop
- C Program - Find Frequency of a Character in a String
- C Program - Find Quotient and Remainder - Modulo Operator
- C Program - How to Print 2D Array in C with For Loops
- C Program - How do you Add Elements to a 2D Array in C
- C Program - Find Largest Element of an Array
- C Program - Calculate Area and Circumference of a Circle
- C Program - Multiple Circles inside C Array - Circumference and Area Calculator
- C Program - Calculate Area of an Equilateral Triangle
- C Program - Swap Two Numbers using a Temporary Variable
- C Program - Swap Two Numbers WITHOUT using the Third Variable
- C Program - Swap Two Numbers using Multiplication and Division
- C Program - Store Information of Students Using Structure
- C Program - Print The Square Star Pattern
- C Program - Check Leap Year with C Programming Language
- How to Add gcc MinGW bin directory to System Path - Windows 10
- C Program - How to Implement Bubble Sort in C Programming Language
- C Program - Bubble Sort Algorithm using Function in C
- C Program - Bubble Sort In C using Nested While Loops
- C Program - Tile Calculator - The Total Number of Tiles Necessary to Cover a Surface
- C Program - Rectangle Calculator - Diagonal, Area, Parimeter
- C Program - Display its Own Source Code as Output
- C Program - strlen() Function Example - Find the Length of a String
- C Program - strcat() Function - How to Concatenate Strings in C
- C Program - strcpy() Function - Copy Content of One String into Another String
- C Program - strncpy() Function - Copy Specific Number of Characters from a String to Another String
- C Program - strcmp() Function - Compares Two Strings Character by Character
Java Tutorial
- Java Tutorial - Eclipse Installation and First Run
- Java Tutorial - Detailed Explanations
- Java Tutorial - Variables and Concatenation
- Java Tutorial - Data Types
- Java Tutorial - Data Type Conversions
- Java Tutorial - Arithmetic Operations - Simple Calc
- Java Tutorial - Simple Math Methods
- Java Tutorial - User Input - Scanner Class
- Java Tutorial - Simple Calculator with User Input
- Java Tutorial - If..Else If..Else
- Java Tutorial - If Statement with User Input
- Java Tutorial - Switch Statement
- Java Tutorial - For Loop
- Java Tutorial - Arrays and ForEach Loop
- Java Tutorial - While and Do..While Loop
- Java Tutorial - Break and Continue inside For Loop
- Java Tutorial - Break and Continue inside While Loop
- Java Tutorial - Array Operations
- Java Tutorial - Methods
- Java Tutorial - Method Parameters
- Java Tutorial - Returning a Value from Method
- Java Tutorial - Method Overloading
- Java OO Tutorial - Classes and Objects
- Java OO Tutorial - Static vs Non Static Methods
- Java OO Tutorial - Constructors
- Java OO Tutorial - Inheritance
- Java OO Tutorial - this Keyword in Java
- Java OO Tutorial - super Keyword in Java
- Java OO Tutorial - Inner Class - Nesting
- Java OO Tutorial - Abstract Classes and Methods
- Java OO Tutorial - Getters and Setters - Encapsulation
- Java OO Tutorial - Interfaces
- Java OO Tutorial - Polymorphism
- Java OO Tutorial - ArrayList
- Java OO Tutorial - ArrayList - For Loop - ForEach
- Java OO Tutorial - Enums
- Java OO Tutorial - LinkedList
- Java OO Tutorial - HashMap
- Java OO Tutorial - HashSet
- Java OO Tutorial - Try..Catch..Finally
- Java OO Tutorial - Create File in Java
- Java OO Tutorial - Write and Append to File in Java
- Java OO Tutorial - Reading a Text File in Java
C# Tutorials
- C# - Introduction & Installation
- C# - Line by Line Explanations
- C# - Variables, Constants, Concatenation
- C# - Data Types & Type Detection
- C# - User Input & Basic Operations
- C# - String Operations
- C# - Math Operations - Max, Min, Abs, Sqrt, Round
- C# - if..else if..else
- C# - Switch Statement
- C# - For Loop
- C# - While & Do..While Loop
- C# - Arrays and Foreach Loop
- C# - Array Operations
- C# - Break & Continue
- C# - Methods
- C# - Method Parameters and Default Params
- C# - Return Value from Method
- C# - Change Order of Parameters
- C# - Method Overloading
- C# - Exceptions - Try..Catch..Finally
- C# OO - Namespaces - Internal
- C# OO - Namespaces - External Files
- C# OO - DLL Files - How to Create .dll
- C# OO - Objects and Classes
- C# OO - Objects and External Classes
- C# OO - Objects from External Namespaces
- C# OO - Objects from DLL Files
- C# OO - Object Modification
- C# OO - Constructors
- C# OO - Constructor Parameters
- C# OO - Private - Access Modifiers
- C# OO - Getters and Setters
- C# OO - Automatic Properties - { get; set; }
- C# OO - Inheritance
- C# OO - Polymorphism - Virtual and Override
- C# OO - Abstract Classes & Methods
- C# OO - Interface
- C# OO - Multiple Interfaces
- C# OO - Enum and Switch Statement
- C# OO - Read From and Write to a Text File
Django Shop CMS Tutorial
- Django Shop CMS - Introduction
- Django Shop CMS - Create Project, Migrate, Admin, Runserver
- Django Shop CMS - Understanding Project Structure
- Django Shop CMS - Models - Categories
- Django Shop CMS - Models - Products
- Django Shop CMS - Models - Buyers
- Django Shop CMS - Models - Product Instances
- Django Shop CMS - Generic Views - Categories
- Django Shop CMS - Generic Views - Products
- Django Shop CMS - Generic Views - Product Instances
- Django Shop CMS - Generic Views - Buyers
- Django Shop CMS - Generic Forms - Categories
- Django Shop CMS - Generic Forms - Products
- Django Shop CMS - Generic Forms - Product Instances
- Django Shop CMS - Generic Forms - Buyers
Python & SQLite Tutorials
- SQLite & Python - Create Database
- SQLite & Python - Create Table
- SQLite & Python - Insert Into Table
- SQLite & Python - Insert Values to a Table from User Input
- SQLite & Python - Insert Muiltiple Values from List
- SQLite & Python - Read Rows from SQLite Table
- SQLite & Python - Update Statement
- SQLite & Python - Create Views
- SQLite & Python - Add New Column and Default Values
- SQLite & Python - Delete (DROP) Tables, Views, Rows
Python Examples
Socket Programming - Python
- Sockets with Python - 1 - Creating Simple Server
- Sockets with Python - 2 - Sending Custom Headers
- Sockets with Python - 3 - Creating Simple Client
- Sockets with Python - 4 - One Way Chat - Server to Client
- Sockets with Python - 5 - Two Way Chat
Security & Networks - Python
- TCP Port Checker - If Remote Port is Open and Listening
- Simple HTTP Server with Python
- Download a File from Public FTP Server
- Split an IP Address in Four Parts
- How to Ping IP Address
- FTP Directory Listing
- Port Scanner in Python
- IP Range - List Generator
- How to Ping Multiple IP Addresses
- Crafting Custom Ping in Python
- Creating Custom URL Query Strings in Python
- IP Address Validity Check
- Hostname to IP Address Lookup - gethostbyname() Python
- Domain to IP Converter
- Continous Ping with User Input
- Domain to IP Bulk Lookup Tool
- Get the System Hostname using Python - gethostname()
- Get Fully Qualified Domain Name - Python FQDN
- Domain Bulk Lookup Tool - Python Multi FQDN
- Get Real IP Address from Localhost Name
- Get a Host by IP Address - gethostbyaddr()
- Protocol to Port Number Conversion
- Get Service by Port - getservbyport()
- Get IPv4 and IPv6 Address of Domain
- Getting Domain Information - Python WHOIS Example
- Domain Information Lookup - Python Whois Script
- Export WHOIS Lookup to .TXT File
- Domain WHOIS Bulk Lookup Tool
- Whois Results to Individual .TXT Files for Every Domain
- Bulk WHOIS Reports to .TXT and .ZIP Files
- How to Open a URL in Python - Webbrowser Module Tutorial
- Anonymous FTP Server in Python - pyftpdlib Tutorial
- Python FTP Server with Authentication - pyftpdlib Tutorial
File & System Operations - Python
- How to Read File
- Write Data to a File
- How to Add Text to a File
- Reading a File with For Loop
- String Formating in Python - .format() Example
- Generating e-mail Addresses with Python
- Splitting Windows Path with Python
- Directory Listing with os.listdir in Python
- String Formating with % and .format()
- Splitting UNIX Path
- How to Clear Screen in Terminal
- Delete File - os.remove() Example
- Pause Execution of Program in Python - time.sleep() Example
- Try, Except and Finally - Python Exception Handling
- Taking Continous Input from User - Python
- Creating Simple Command Line App
- Exporting all "prints" to external .TXT file
- Redirect Command Prompt Operation to .TXT File
- Backup One File with Python - Simple Backup Script
- Copy File to Same Folder
- Copy Folder with Files to Another Folder
- Create Empty Folder using Python
- Move File to Another Folder
- Delete a File with Python
- Delete Empty Directory
- Delete Multiple Empty Folders from List
- Remove Directory and All of Its Content
- Remove Multiple Folders with Content
- Find All Files in Directory with Specific Extension
- Listing a Directory in Python - First Level Listing
- Exporting Directory Listing to .TXT File
- Delete All Files with Specific Extension in a Folder
- Python PIP How To - Install and Uninstall Packages
- Send File to Recycle Bin with Python - send2trash
- Delete Multiple Files
- Export List of Deleted Files to .TXT File
- List All Files From All Subdirectories
- Recursively Search for Files with a Specific Extension
- Get a List of All Subdirectories in the Main Directory
- How to Create Python Virtual Environment - venv Tutorial
- How to Upgrade PIP in Windows - using Command Prompt
- How to Create Virtual Environment and Django Project
MySQL Python Examples - Python
- MySQL Create Database
- Create Multiple MySQL Databases Automatically
- Bulk Create MySQL Databases from .TXT File
- Create MySQL Table - One or More
ZIP Examples - Python
- List ALL Files in ZIP Archives Without Decompresion
- File Size Before and After ZIP Compression
- How to Unzip a File
- Extract Files with Specific Extension from ZIP File
- How to Create a ZIP File
- Compress Multiple Files in One ZIP File
- Compress Multiple Files to Individual ZIP Files in One Go
Audio Programming - Python
Python Turtle Tutorial
- Turtle - First Turtle & Coordinates
- Turtle - Forward, Backward, Angles, Directions
- Turtle - For Loop, Speed, Circle, Dot
- Turtle - Background Color, Shapesize, Pensize
- Turtle - Window Size, Bg Image, Clear Screen
- Turtle - Shape, Shape Size, Pen Color, Fill Color
- Turtle - For Loop, While Loop
- Turtle - Move Turtle with Arrow Keys
- Turtle - Move Turtle with Mouse
- Turtle - Drag Turtle with Mouse
- Turtle - Turtle Race Game
- Turtle - Automatic Winner Detection
Python Tkinter Tutorial
- Tkinter Introduction - Top Widget, Method, Button
- Tkinter Buttons - Run External Apps from Tkinter
- Tkinter Buttons - Size, Colors, Fonts
- Tkinter Buttons - Background Image, Relief, Anchor
- Tkinter Toplevel - New Window Spawn
- Tkinter Canvas
- Tkinter Line, Oval, Arc, Rectangle
- Tkinter Labels and Entry Fields
- Tkinter Entry Fields
- Tkinter Frames
- Tkinter Listbox
- Tkinter Checkbuttons
- Tkinter Radiobuttons
- Tkinter Menubar and Menus
- Tkinter Scale
- Tkinter Scrollbars
- Tkinter Text Widget
CSS Tutorial
- CSS Introduction
- CSS Insert in Html
- CSS Selector, Property, Value
- CSS ID Explained
- CSS Class Explained
- CSS Comments
- CSS Colors
- CSS Image as Background
- CSS Image Positioning
- CSS Image Scroling
- CSS Border Style, Width
- CSS Border Color Mix
- CSS Mix Widths and Colors
- CSS One Liners
- CSS Border Radius
- CSS Margins
- CSS Auto Margins
- CSS Padding
- CSS DIVs
- CSS Outline
- CSS Text Decoration
- CSS Spacing, Indentation
- CSS Font Types, Families
- CSS Sizes
- CSS Link Decoration
- CSS Lists
- CSS Tables
- CSS Table Columns
- CSS Table Rows
- CSS Max Width
- CSS Static vs Fixed
- CSS Absolute vs Fixed
- CSS Absolute vs Relative
- CSS Float
- CSS Inline Block
- CSS Image Opacity
- CSS Navigation Bar
- CSS Vertical Menu
- CSS Html Forms
- CSS Bootstrap 4 Intro
PHP Tutorial
- PHP Introduction
- PHP Localhost as WebServer
- PHP First Page, Comments
- PHP Variables, Concatenation
- PHP Echo, Print, Html
- PHP Html Form Processing
- PHP Special Characters
- PHP If Else Statement
- PHP If Else Combinations
- PHP Calculator
- PHP Switch, Case, Break, Default
- PHP Executing Programs
- PHP Exec, Html Form
- PHP Switch, Html Form
- PHP For Loops
- PHP For Loop, Html Form
- PHP Foreach, Arrays
- PHP Element Position
- PHP Count Function
- PHP Sorting Arrays
- PHP Associative Arrays
- PHP While, Do While
- PHP Functions
- PHP Function Arguments
- PHP Default Arguments
- PHP Return Values
- PHP Constants
- PHP Include, Require
- PHP Reading Files
- PHP Write, Append to Files
PHP & MySQLi Tutorial
- MySQLi Introduction
- MySQLi Server Connection
- MySQLi Create Database
- MySQLi Create Table
- MySQLi Insert Into
- MySQLi Last Insert ID
- MySQLi Multiple Insert
- MySQLi Select All
- MySQLi Html Table Report
- MySQLi Delete From Table
- MySQLi Update Statement
- MySQLi Truncate Table
- MySQLi Html Form to Table
- MySQLi Admin Panel
- MySQLi Delete by ID
- MySQLi Finishing CMS
Tkinter Introduction - Top Widget, Method, Button
First, let's make shure that our tkinter module is working ok with simple for loop that will spawn 5 instances of blank Tk window . ...