<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def showSpec(self, fname):
 """Draws the spectrogram if it is currently None"""

        if not self.specPlot.hasImg() and fname is not None:
            self.specPlot.fromFile(fname)