"Flash Message" Window

I've created a custom window class (from window_base, not window_command). I'm looking to have it hide and deactivate 3 seconds after it's shown & activated.

Every search result so far has suggested some form of overriding my window's update method, but the window's refresh method calls draw_icon and draw_text. When I override update (even just to increment some variable and nothing more), the window is always drawn blank for the 3 seconds (or longer depending on how intense the overridden update method is). This is the case even when I place the draw_icon and draw_text calls within an overridden update method.

Is there a way to cause it to execute those calls while updating? And if not, is there another way to make my window vanish 3 seconds after it appears?
It might be helpful if you post your overridden update method. Couple thoughts though:


-You never want to call the draw_text command any more than is necessary. The update method is called once a frame, so that is not the place for it. You just need a single call to the refresh method when the window is initialized as long as the text and such does not change.


-Did you include a call of super in your overridden update method?
Wow, I can't believe calling or not calling super in my update method is what made the difference. Thanks Yato!

The update method is simply:

def update  super            #newly added -- thanks Yato!  @lifetime -= 1   #keeps track of how many more frames the window should be open  self.hide.deactivate if @lifetime <= 0endAnd I simply set the my window instance's @lifetime variable to an arbitrarily high value directly before I call its show method.

Original thread: https://forums.rpgmakerweb.com/threads/flash-message-window.26158/