Is There a Python Window Command? - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Is There a Python Window Command? (/thread-17753.html) |
Is There a Python Window Command? - toml_12953 - 11-26-2021 01:09 PM I can use Python graphics on Prime with no problem but they're pixel-oriented and I have to manipulate the graphics to fit the screen. Is there a way to redefine the screen limits the way you can do in HPPL? I tried setting Xmin, Xmax, Ymin and Ymax but no change. I also tried eval() with those variables. Are there other graphics commands for line() and pixon() that respect the set screen coordinates? I was sure I had some Prime Python documentation but, of course, I can't find it now. RE: Is There a Python Window Command? - toml_12953 - 11-28-2021 04:26 PM The 20211125 version of the Prime firmware has what I need. get_cartesian() and set_cartesian() functions along with adding _c to the drawing functions will do what I want. Example: line_c(x1,y1,x2,y2,color) uses Cartesian coordinates. RE: Is There a Python Window Command? - toml_12953 - 11-28-2021 05:21 PM (11-28-2021 04:26 PM)toml_12953 Wrote: The 20211125 version of the Prime firmware has what I need. Apparently, however, fillrect_c doesn't work. Example: fillrect_c(0,0,0,320,200,0,0) should fill the screen with black when Xmin=0, Xmax=319, Ymin=0, Ymax=199 but it shows no black at all. |