def realize(self, widget): self.set_current_view() s = self.stat s.poll() self._current_file = None self.font_base, width, linespace = \ glnav.use_pango_font('courier bold 16', 0, 128) self.font_linespace = linespace self.font_charwidth = width rs274.glcanon.GlCanonDraw.realize(self) if s.file: self.load()
def realize(self): self.set_current_view() s = self.stat try: s.poll() except: return self._current_file = None self.font_base, width, linespace = \ glnav.use_pango_font('courier bold 16', 0, 128) self.font_linespace = linespace self.font_charwidth = width glcanon.GlCanonDraw.realize(self)
def realize(self): self.set_current_view() s = self.stat try: s.poll() except: return self._current_file = None self.font_base, width, linespace = \ glnav.use_pango_font('courier bold 16', 0, 128) self.font_linespace = linespace self.font_charwidth = width glcanon.GlCanonDraw.realize(self)
def realize(self): self.set_current_view() # if user view has not been preset - set it now # as it's in a reasonable place if not self._presetFlag: self.recordCurrentViewSettings() s = self.stat try: s.poll() except: return self._current_file = None self.font_base, width, linespace = glnav.use_pango_font(self._font, 0, 128) self.font_linespace = linespace self.font_charwidth = width glcanon.GlCanonDraw.realize(self) if s.file: self.load()
def realize(self, widget): self.activate() self.set_current_view() s = self.stat try: s.poll() except Exception as e: print(e) return self._current_file = None self.font_base, width, linespace = glnav.use_pango_font('monospace 16', 0, 128) self.font_linespace = linespace self.font_charwidth = width rs274.glcanon.GlCanonDraw.realize(self) self.swapbuffers() if s.file: self.load()