PVZ2tools icon indicating copy to clipboard operation
PVZ2tools copied to clipboard

Support arguments

Open Haruma-VN opened this issue 1 year ago • 1 comments

In Python, there is a built-in library called "sys" that you can use that to support drag and drop. I believe you can support drag and drop through a launch file for mac, linux & windows which makes the tool faster on processing functions that improve the productivity.

Haruma-VN avatar Jun 11 '23 20:06 Haruma-VN

You can check for drag and drop or passing argument if len(sys.argv) > 2 first, then later do the process. If it's not, loads the default menu as usual.

Haruma-VN avatar Jun 11 '23 20:06 Haruma-VN