Posts

Showing posts from October, 2023

Day 4

 I found a video tutorial for the c++ version of QT but since Qt c++ and pyQt/Pyside are essentialy the same this works fine for me. here is the link  qt tutorial  I also found out that i hadn't installed everything I needed from the offical  PyQT/Pyside  page.

Day 3

 Today I finished the drag drop function and look at a tutorial that can help me set the attack range.

Day 2

Image
 I copied all of my all code that I had made previously what was originally there the original code import PySide6 import PySide6.QtCore as core import PySide6.QtGui as gui import PySide6.QtWidgets as widgets from PySide6.QtWidgets import QGraphicsScene,QGraphicsView,QGraphicsRectItem,QGraphicsSceneMouseEvent,QGraphicsItem,QGraphicsEllipseItem from PySide6.QtGui import QDragMoveEvent,QCursor from PySide6.QtCore import QEvent, Qt, QPointF,QPoint import sys class Store ( QGraphicsRectItem,QGraphicsEllipseItem,QGraphicsSceneMouseEvent ) : def __init__ ( self , parent = None ) : super ( Store, self ) . __init__ ( parent ) self . setAcceptHoverEvents ( True ) self . setRect ( 650 , 0 , 75 , 75 ) def mousePressEvent ( self , event : PySide6.QtWidgets.QGraphicsSceneMouseEvent ) : self .tower = Tower ( 650 , 0 ) scene. addItem ( self .tower ) def mouseMoveEvent ( self , event ) : og_cursor_pos = event . lastScenePos () new...

Day 1

 Today I set my blog up and set up Pycharm/Python by installing all necessary libraries and making sure they work.