Embarcadero / DelphiFMX4Python

Python GUI module powered by Delphi's FireMonkey framework. Supporting Windows, MacOS, Linux, and Android GUI development.
Other
298 stars 55 forks source link

Missed event handler for events of type TPaintEvent #99

Open rtyusdfg opened 2 months ago

rtyusdfg commented 2 months ago
import os
from delphifmx import *

class FormMain(Form):

    def __init__(self, owner):
        self.PaintBox = None
        self.LabelLineCount = None
        self.Panel = None
        self.HueTrackBarLinesColor = None
        self.HueTrackBarPointsColor = None
        self.TrackBarStartFadeDistance = None
        self.Label2 = None
        self.Label3 = None
        self.Label4 = None
        self.TimerAnimate = None
        self.StyleBook = None
        self.LoadProps(os.path.join(os.path.dirname(os.path.abspath(__file__)), "UnitMain.pyfmx"))

    def FormCreate(self, Sender):
        pass

    def PaintBoxMouseUp(self, Sender, Button, Shift, X, Y):
        pass

    def PaintBoxPaint(self, Sender, Canvas):
        pass

    def TimerAnimateTimer(self, Sender):
        pass

def main():
    Application.Initialize()
    Application.Title = 'NetEffect'
    Application.MainForm = FormMain(Application)
    Application.MainForm.Show()
    Application.Run()
    Application.MainForm.Destroy()

if __name__ == '__main__':
    main()

UnitMain.pyfmx.txt

gives image

lmbelo commented 2 months ago

Hello @rtyusdfg,

I'm fixing it and building a new release.