Posts by Arthur Sally • 145 points
10 posts
-
0
votes1
answer29
viewsA: Listbox with synchronized selection
Try it here: from tkinter import * root = Tk() root.geometry("500x500") scroll=Scrollbar(root) scroll.place(x=300,y=90) listbox = Listbox(root,exportselection=0) listbox.insert(END, "Selecione")…
-
-1
votes1
answer578
viewsA: How to establish a P2P connection?
First, You can use any Python method to create P2P network communication, you can use socket if you want to program at a lower level, or you can use flask as a server and request as clients, or any…
-
0
votes1
answer85
viewsQ: How does Modern Opengl work?
I already studied Opengl, and now I was reading Modern Opengl, I was watching some videos on Youtube and some tutorials on the internet and I wrote this code: import pyglet, numpy, ctypes from…
-
2
votes2
answers74
viewsQ: How do I know if a Shader is working?
Is my code right? I’m using Python and Pyglet, as I know if Shader is running, why did I get Shader’s code on the internet: import pyglet from pyglet.gl import * import pyshaders as ps t =…
-
0
votes1
answer214
viewsA: How do I make 3D work on pyglet?
I solved, the problem is in pyglet, every time the page updates it goes through the function on_draw(), but the problem is that pyglet already defines a number of things when it goes through the…
-
0
votes1
answer414
viewsQ: How Exploits are created?
I was researching server security, and I ran into the subject of exploits, I already understood the logic of a DDOS attack and an exploit buffer overflow, but I’m curious about one thing: How do…
-
-1
votes1
answer2701
viewsQ: How does an online game server work?
This is another question about online games, I recently studied Opengl and learned how the process of creating video games works, I was interested in learning more to create an MMO, for this I…
-
11
votes1
answer751
viewsQ: How does a Ddos attack work?
I’m curious trying to understand how a Ddos attack works, so I gave a read online and then wrote this snippet of code to attack my own router to see what happens: import socket, threading n = 0 s =…
-
-1
votes5
answers714
viewsA: I want to turn a text into a list of dictionaries
You can use the library json to turn strings into lists, just use the command: import json texto = open('arquivo.txt','r').read() lista = json.loads(texto) print(lista['pais'])…
-
0
votes1
answer214
viewsQ: How do I make 3D work on pyglet?
I was trying to create using Opengl, Python and pyglet, a flat triangle in a 3D space, I saw some tutorials on the internet, some videos on Youtube, and in the end I wrote this code down there, the…