<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self):
 """ Update the PopupWindow if it is currently showing. This avoids calling update during initialization. """

        if not self.showing:
            return
        d = self.declaration
        self.set_show(d.show)