325 reply = prompt(size, outputBuffer.getvalue()) |
325 reply = prompt(size, outputBuffer.getvalue()) |
326 return reply |
326 return reply |
327 inputChannels["L"] = func |
327 inputChannels["L"] = func |
328 else: |
328 else: |
329 def myprompt(size): |
329 def myprompt(size): |
330 reply = self.__prompt(size, outputBuffer.getvalue()) |
330 if outputBuffer is None: |
|
331 msg = self.trUtf8("For message see output dialog.") |
|
332 else: |
|
333 msg = outputBuffer.getvalue() |
|
334 reply = self.__prompt(size, msg) |
331 return reply |
335 return reply |
332 inputChannels["L"] = myprompt |
336 inputChannels["L"] = myprompt |
333 if input is not None: |
337 if input is not None: |
334 inputChannels["I"] = input |
338 inputChannels["I"] = input |
335 |
339 |