Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1c6639f

Browse files
Add files via upload
1 parent 4c9ac02 commit 1c6639f

File tree

2 files changed

+125
-0
lines changed

2 files changed

+125
-0
lines changed

‎ornekler_7.py‎

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import json
2+
from flask import jsonify
3+
import sqlite3
4+
from tkinter import *
5+
from flask import Flask
6+
7+
app = Flask(__name__)
8+
9+
10+
@app.route("/")
11+
def hello_world():
12+
return "<p>Hello, World!</p>"
13+
14+
15+
@app.route("/merhaba")
16+
def merhaba():
17+
return "<p>Merhaba!</p>"
18+
19+
######################################################
20+
21+
22+
if __name__ == "__main__":
23+
app.run(debug=True, host="localhost", port=22222)
24+
25+
26+
app = Flask(__name__)
27+
28+
29+
@app.route("/getir")
30+
def getir():
31+
bag = sqlite3.connect("kripto.vt")
32+
cursor = bag.cursor()
33+
sorgu = "SELECT * FROM parite WHERE " \
34+
"(otime BETWEEN '2022年02月03日' " \
35+
"AND '2022年02月04日') "\
36+
"AND parite='AVAXUSDT'"
37+
cursor.execute(sorgu)
38+
sonuc = cursor.fetchall()
39+
bag.close()
40+
return sonuc
41+
42+
43+
@app.route("/saglam_getir/<parite>/<tarih1>/<tarih2>")
44+
def saglam_getir(parite, tarih1, tarih2):
45+
bag = sqlite3.connect("kripto.vt")
46+
cursor = bag.cursor()
47+
sorgu = "SELECT * FROM parite WHERE " \
48+
"(otime BETWEEN '"+tarih1+"' " \
49+
"AND '"+tarih2+"') "\
50+
"AND parite='"+parite+"'"
51+
cursor.execute(sorgu)
52+
sonuc = cursor.fetchall()
53+
bag.close()
54+
return json.dumps(sonuc)
55+
56+
57+
if __name__ == "__main__":
58+
app.run(debug=True, host="localhost", port=22222)

‎ornekler_8.py‎

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
from tkinter import *
2+
import pyautogui
3+
4+
pyautogui.moveTo(500, 500, duration=2, tween=pyautogui.easeInOutQuad)
5+
pyautogui.moveTo(1000, 1000, duration=2, tween=pyautogui.easeInCirc)
6+
pyautogui.moveTo(50, 50, duration=2, tween=pyautogui.easeInBounce)
7+
pyautogui.moveTo(500, 500, duration=2, tween=pyautogui.easeOutElastic)
8+
9+
""""""""""""""""""""""""""""""""""""""""""""""""""""""
10+
# Ekran Çözünürlüğü
11+
screenWidth, screenHeight = pyautogui.size()
12+
13+
14+
print("Ekran çözünürlüğü : ", screenWidth, screenHeight)
15+
16+
# Fare Pozisyonu
17+
currentMouseX, currentMouseY = pyautogui.position()
18+
print("Fare Pozisyonu : ", currentMouseX, currentMouseY)
19+
20+
""""""""""""""""""""""""""""""""""""""""""""""""""""""
21+
22+
pyautogui.moveTo(799, 466, duration=2, tween=pyautogui.easeInOutQuad)
23+
pyautogui.click()
24+
25+
for i in range(100):
26+
pyautogui.write("hello world", interval=0.001)
27+
pyautogui.press("enter")
28+
29+
""""""""""""""""""""""""""""""""""""""""""""""""""""""
30+
31+
# distance = 300
32+
# while distance > 0 :
33+
# pyautogui.drag(distance, 0, duration=0.5)
34+
# distance -= 5
35+
# pyautogui.drag(0 ,distance, duration=0.5)
36+
# distance -= 5
37+
# pyautogui.drag(distance, 0, duration=0.5)
38+
# distance -= 5
39+
# pyautogui.drag(distance, 0, duration=0.5)
40+
# distance -= 5
41+
42+
""""""""""""""""""""""""""""""""""""""""""""""""""""""
43+
44+
window = Tk()
45+
46+
window.title("merhaba")
47+
lbl = Label(window, text="Hi!")
48+
lb2 = Label(window, text="Hi!", font=("Arial Bold", 90))
49+
50+
lbl.grid(column=0, row=0)
51+
lb2.grid(column=1, row=0)
52+
53+
window.geometry("500x400")
54+
55+
button = Button(window, text="click")
56+
button.grid(column=1, row=1)
57+
58+
59+
window.mainloop()
60+
61+
62+
def clicked():
63+
#lbl.configure(text="Clicked button")
64+
65+
button2 = Button(window, text="colorful click",
66+
bg="orange", fg="red", width=20, height=20)
67+
button2.grid(column=1, row=1)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /