Fadak - Programming - Python & Frameworks
: 2021-02-20Visitor Count : 892

Python & Frameworks


  1. Python Web Frameworks to Learn in 2019 - Django
  2. Editors
  3. Python
  4. tkinter
  5. Comparing the contents of two directories
  • Other
  • Arabic - Persian
  • Events and Binds

  • Python Web Frameworks to Learn in 2019 - Django

     

    Editors

    Spyder Website

    PEP 8 - Style Guide for Python Code

    Python

    Python.org

    Project Jupyter

    Top 11 Python Frameworks in 2018

    auto-py-to-exe · PyPI

    mahdi_module.py
    def show(ff):
    print('Print show',ff)

     

    a = float(input("inter add"))
    if a > 1:
    print("very good")
    else:
    print ("goog")
    print("ddddd")

    for mahdi in range(1,10):
    print(mahdi)
    while mahdi<20:
    mahdi = mahdi+1
    def function_say_hello(ff):
    print('Print',ff)
    for i in ['dog','jadi dogi', 'dog jadi']:
    function_say_hello(i)

    # Way one
    import mahdi_module
    mahdi_module.show(a)

    # Way two
    from mahdi_module import *
    show(a)

    # Way three
    from mahdi_module import show
    show(a)

    GTK

    Python Examples of gi.repository.Gdk.Event

    8. Entry — Python GTK+ 3 Tutorial 3.4 documentation

    tkinter

    Create GUI in python

    from tkinter import *

    root = Tk()
    Label(root, text='Hello, Tkinter').pack()
    root.mainloop()

    from tkinter import *
    root = Tk()
    root.geometry('300x300')
    root.title("First Tkinter Window")
    root.mainloop()

    from tkinter import *  root = Tk()  w = Label(root, text="It comes as standard with Python")  w.pack()  root.mainloop()

    python - How to get tkinter canvas to dynamically resize to window width? - Stack Overflow

    python - How to get tkinter canvas to dynamically resize to window width? - Stack Overflow

    [Tkinter-discuss] getting width of a Frame

    tkinter.ttk — Tk themed widgets — Python 3.9.1rc1 documentation

    Python - GUI Programming (Tkinter) - Tutorialspoint

    List of ttk Themes

    How to Change Tkinter Theme from One to Another

    Comparing the contents of two directories

    command line - Comparing the contents of two directories - Ask Ubuntu

    filename - Keyboard Shortcut to Rename File in GUI (Other Than F2) - Ask Ubuntu

    Other

    macos - Running a Python script without opening Terminal - Stack Overflow

    compiling - How to compile a python file? - Ask Ubuntu

    python - Exception in Tkinter callback Traceback (most recent call last): - Stack Overflow

    shell - sudo with password in one command line? - Super User

    Python Execute Unix / Linux Command Examples - nixCraft

    4 Useful Way to Know Plugged USB Device Name in Linux

     

    python - List of All Tkinter Events - Stack Overflow

    Reading and Writing CSV Files in Python – Real Python

    Writing array to csv python (one column) - Stack Overflow

    Python Arrays - Create, Update, Remove, Index and Slice

    TextBox

    Python for Beginners: Reading & Manipulating CSV Files

    Arabic - Persian

    HOWTO: Working with Python, Unicode, and Arabic | Spence Green

    Python 3 print() function with Farsi/Arabic characters - Stack Overflow

    how to print Arabic text correctly in PYTHON - Stack Overflow

    Events and Binds

    Event Description
    A mouse button is pressed with the mouse pointer over the widget. The detail part specifies which button, e.g. The left mouse button is defined by the event , the middle button by , and the rightmost mouse button by .
    defines the scroll up event on mice with wheel support and and the scroll down.
    If you press down a mouse button over a widget and keep it pressed, Tkinter will automatically "grab" the mouse pointer. Further mouse events like Motion and Release events will be sent to the current widget, even if the mouse is moved outside the current widget. The current position, relative to the widget, of the mouse pointer is provided in the x and y members of the event object passed to the callback. You can use ButtonPress instead of Button, or even leave it out completely: , , and <1> are all synonyms.
    The mouse is moved with a mouse button being held down. To specify the left, middle or right mouse button use , and respectively. The current position of the mouse pointer is provided in the x and y members of the event object passed to the callback, i.e. event.x, event.y
    Event, if a button is released. To specify the left, middle or right mouse button use , , and respectively. The current position of the mouse pointer is provided in the x and y members of the event object passed to the callback, i.e. event.x, event.y
    Similar to the Button event, see above, but the button is double clicked instead of a single click. To specify the left, middle or right mouse button use , , and respectively.
    You can use Double or Triple as prefixes. Note that if you bind to both a single click () and a double click (), both bindings will be called.
    The mouse pointer entered the widget.
    Attention: This doesn't mean that the user pressed the Enter key!. is used for this purpose.
    The mouse pointer left the widget.
    Keyboard focus was moved to this widget, or to a child of this widget.
    Keyboard focus was moved from this widget to another widget.
    The user pressed the Enter key. You can bind to virtually all keys on the keyboard: The special keys are Cancel (the Break key), BackSpace, Tab, Return(the Enter key), Shift_L (any Shift key), Control_L (any Control key), Alt_L (any Alt key), Pause, Caps_Lock, Escape, Prior (Page Up), Next (Page Down), End, Home, Left, Up, Right, Down, Print, Insert, Delete, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Num_Lock, and Scroll_Lock.
    The user pressed any key. The key is provided in the char member of the event object passed to the callback (this is an empty string for special keys).
    a The user typed an "a" key. Most printable characters can be used as is. The exceptions are space () and less than (). Note that 1 is a keyboard binding, while <1> is a button binding.
    The user pressed the Up arrow, while holding the Shift key pressed. You can use prefixes like Alt, Shift, and Control.
    The size of the widget changed. The new size is provided in the width and height attributes of the event object passed to the callback. On some platforms, it can mean that the location changed.


       

    2000-2016 CMS Fadak. ||| Version : 4.2-b1 ||| This page was produced in : 0.017 Seconds |||