Posts

Showing posts from September, 2020

file drag -drop upload system in flask websites || Python ||

Image
In this article we're going to learn- How can we apply flask_dropzone in our website to avail file drag and drop feature for uploading on website / it's database. so , let's begin the course... ----------------- Prerequisites:  1. Flask - [pip install flask]   2. flask_dropzone [ pip install Flask-Dropzone  ] 3. Your basic knowledge about flask apps  ----------------  Watch Tutorial for full course of this article :-   My Full Code for This project is on :- my GitHub Repo  ⇠ Download from here

Tooltip in Tkinter || How to make Balloon in tkinter || Python

Image
Source code 👉🏻 ➖ ➖ ➖ ➖ tooltip.py import tkinter as tk class CreateToolTip ( object ): """ create a tooltip for a given widget """ def __init__ ( self , widget, text = 'widget info' ): self . waittime = 500 #miliseconds self . wraplength = 180 #pixels self . widget = widget self . text = text self . widget . bind( "<Enter>" , self . enter) self . widget . bind( "<Leave>" , self . leave) self . widget . bind( "<ButtonPress>" , self . leave) self . id = None self . tw = None def enter ( self , event = None ): self . schedule() def leave ( self , event = None ): self . unschedule() self . hidetip() def schedule ( self ): self . unschedule() self . id = self . widget . after( self . waittime, self . showtip) def unsc