def set_fractal(entry, form, order): try: utils.idle_add(form.set_param, order, entry.get_active()) except Exception, err: msg = "error setting bool param: %s" % str(err) print msg utils.idle_add(f.warn, msg)
def set_fractal(entry,form,order): try: utils.idle_add(form.set_param,order,entry.get_active()) except Exception, err: msg = "error setting bool param: %s" % str(err) print msg utils.idle_add(f.warn,msg)
def draw_image(self, aa=None, auto_deepen=None): try: Hidden.draw_image(self, aa, auto_deepen) except fracttypes.TranslationError, err: advice = _("\nCheck that your compiler settings and formula file are correct.") utils.idle_add(self.error, _("Error compiling fractal:"), err.msg + advice) return
def set_fractal(entry, event, form, order): try: utils.idle_add(form.set_param, order, entry.get_text()) except Exception, err: # FIXME: produces too many errors msg = "Invalid value '%s': must be a number" % entry.get_text() print msg
def draw_image(self,aa=None,auto_deepen=None): try: Hidden.draw_image(self,aa,auto_deepen) except fracttypes.TranslationError, err: advice = _("\nCheck that your compiler settings and formula file are correct.") utils.idle_add(self.error, _("Error compiling fractal:"), err.msg + advice) return
def set_fractal(entry,event,form,order): try: utils.idle_add( form.set_param,order,entry.get_text()) except Exception, err: # FIXME: produces too many errors msg = "Invalid value '%s': must be a number" % \ entry.get_text() print msg
def set_size(self, new_width, new_height): self.interrupt() if self.width == new_width and self.height == new_height : return self.width = new_width self.height = new_height self.image.resize_full(new_width, new_height) utils.idle_add(self.changed)
def set_fractal(*args): try: try: i = int(widget.get_text()) self.set_maxiter(i) except ValueError, err: msg = "Invalid value '%s': must be a number" % widget.get_text() utils.idle_add(self.warn, msg) except Exception, exn: print exn
def set_size(self, new_width, new_height): self.interrupt() if self.width == new_width and self.height == new_height: return self.width = new_width self.height = new_height self.image.resize_full(new_width, new_height) utils.idle_add(self.changed)
def set_fractal(*args): try: try: i = int(widget.get_text()) self.set_maxiter(i) except ValueError, err: msg = "Invalid value '%s': must be a number" % \ widget.get_text() utils.idle_add(self.warn, msg) except Exception, exn: print exn
def set_prefs(*args): try: try: height = int(entry.get_text()) except ValueError: utils.idle_add( self.show_error, "Invalid value for height: '%s'. Must be an integer" % \ entry.get_text()) return False width = self.f.width if self.fix_ratio.get_active(): width = int(height * float(self.f.width)/self.f.height) self.prefs.set_size(width, height) except Exception, exn: print exn
def set_prefs(*args): try: try: height = int(entry.get_text()) except ValueError: utils.idle_add( self.show_error, "Invalid value for height: '%s'. Must be an integer" % \ entry.get_text()) return False width = self.f.width if self.fix_ratio.get_active(): width = int(height * float(self.f.width) / self.f.height) self.prefs.set_size(width, height) except Exception, exn: print exn
def set_size(self, new_width, new_height): try: Hidden.set_size(self,new_width, new_height) self.widget.set_size_request(new_width,new_height) except MemoryError, err: utils.idle_add(self.warn,str(err))
def adj_changed(adjustment,form,order): utils.idle_add( form.set_param, order, adjustment.value)
def set_size(self, new_width, new_height): try: Hidden.set_size(self, new_width, new_height) self.widget.set_size_request(new_width, new_height) except MemoryError, err: utils.idle_add(self.warn, str(err))
def adj_changed(adjustment, form, order): utils.idle_add(form.set_param, order, adjustment.value)