So, I'm having a case where I'd like to use get_height_rect without an existing console, or at least, with a console of (width=0, height=0).
This console is basically use to hold the content of a print_box function, and that's it. This is a console dedicated to the content of a tooltip with variable value.
But if I want to use print_box, I'd need to know and set the height of the console before using the print_box function. Get_height_rect would be perfect here but if we use it on a Console(0,0), the only value we'd get is 0.
Any Idea how I could work around that ? I could implement my own print_box function in python, but it would not be as efficient as print_box I guess.
So, I'm having a case where I'd like to use get_height_rect without an existing console, or at least, with a console of (width=0, height=0). This console is basically use to hold the content of a print_box function, and that's it. This is a console dedicated to the content of a tooltip with variable value.
But if I want to use
print_box
, I'd need to know and set the height of the console before using theprint_box
function.Get_height_rect
would be perfect here but if we use it on aConsole(0,0)
, the only value we'd get is 0.Any Idea how I could work around that ? I could implement my own
print_box
function in python, but it would not be as efficient asprint_box
I guess.