Wednesday, April 29, 2020

How to create scroll bar on python tkinter and use Keys on keyboard to move up or down

import tkinter
from tkinter import *
import docx
root = Tk()
file=docx.Document("New Microsoft Word Belgesi.docx")
array=[]
for i in file.paragraphs:           
        line=i.text
        array.append(line)
       
mylabel=Label(root)
mylabel.grid()
text=Text(mylabel)
text.grid(row=0,column=1)
scrollbar =Scrollbar(mylabel,command=text.yview)
text.config(yscrollcommand=scrollbar.set)
scrollbar.grid(row=0,column=0,sticky=NSEW)
text.insert(END,array)

def key_pressed(event):
    print(event.keysym)
    if str(event.keysym)=="Down":
        text.yview_scroll(5, "units")
    elif str(event.keysym)=="Up":
        text.yview_scroll(-5, "units")
       
root.bind("<Key>",key_pressed)

root.mainloop()

Monday, December 23, 2019

froms on html

Click on one of the text labels to toggle the related control:

Thursday, November 28, 2019

chapter 2-Homework Problems and Questions R2

What is the difference between network architecture and application architecture?

A network architecture is a layered service that works in more than one easily described process. While an application architecture is designed by the application developer and dictates how the application is structured over the various end system, a network architecture is designed as a complex system meant to implement many services. The best way to describe it is the five-layer internet protocol; application, transport, network, link, and physical

chapter 2-Homework Problems and Questions R1

List five nonproprietary Internet applications and the application-layer protocols that they use.
______________________________________________

The Web: HTTP;
file transfer: FTP;
remote login: Telnet;
 Network News: NNTP;
 e-mail:SMTP.

Friday, November 22, 2019

blender models

earth
explosion
particular
texture

in the link 

BLEDNDER S400 TRUCK AND PATRIOT MODELS

THE blender models are in the link.
*rockets are fired
*patriot truck is moving with rockets
*patriot radar are ready to detect
*s400 are ready to move and radar ready to detect.