simpleledger / Electron-Cash-SLP

Electron Cash for SLP Tokens
https://simpleledger.cash/project/electron-cash-slp-edition/
MIT License
64 stars 53 forks source link

unexpected type 'float' should be rounded in paytoedit.py & util.py #241

Open TinosNitso opened 1 year ago

TinosNitso commented 1 year ago

It's impossible for me to run from source without making a few edits. I'm not sure I should fork without simply raising the issues. Line 234 of paytoedit.py could be rounded:

    h = round(min(max(h, self.heightMin), self.heightMax))

Then line 879 of util.py could be rounded:

    y = round((y / 2) + frame_width if middle else y - frame_width)

Then line 1170 of util.py could be rounded too:

            self.timer.start(round(diff*1e3))