Python wx.NO_FULL_REPAINT_ON_RESIZE Examples
The following are 6
code examples of wx.NO_FULL_REPAINT_ON_RESIZE().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
wx
, or try the search function
.
Example #1
Source File: Main.py From nodemcu-pyflasher with MIT License | 6 votes |
def __init__(self, parent, title): wx.Frame.__init__(self, parent, -1, title, size=(725, 650), style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE) self._config = FlashConfig.load(self._get_config_file_path()) self._build_status_bar() self._set_icons() self._build_menu_bar() self._init_ui() sys.stdout = RedirectText(self.console_ctrl) self.Centre(wx.BOTH) self.Show(True) print("Connect your device") print("\nIf you chose the serial port auto-select feature you might need to ") print("turn off Bluetooth")
Example #2
Source File: Bling.py From BitTorrent with GNU General Public License v3.0 | 5 votes |
def __init__(self, parent, history): super(BTPanel, self).__init__(parent, style=wx.NO_FULL_REPAINT_ON_RESIZE) self.history = history self.history.viewer = self.update self.upload_rate = 0 self.download_rate = 0 self.SetBackgroundColour("#002000") self.max_label_width = None CustomWidgets.DoubleBufferedMixin.__init__(self)
Example #3
Source File: Bling.py From BitTorrent with GNU General Public License v3.0 | 5 votes |
def __init__(self, parent, history, *a, **k): super(BlingWindow, self).__init__(parent, title="Details", size=(640, 280), style=wx.DEFAULT_FRAME_STYLE|wx.NO_FULL_REPAINT_ON_RESIZE|wx.CLIP_CHILDREN) self.Bind(wx.EVT_CLOSE, self.close) self.bling = BandwidthGraphPanel(self, history) self.SetBackgroundColour(self.bling.GetBackgroundColour()) self.sizer = wx.BoxSizer(wx.VERTICAL) self.sizer.Add(self.bling, flag=wx.GROW, proportion=1) self.SetSizer(self.sizer)
Example #4
Source File: profile_gui.py From BitTorrent with GNU General Public License v3.0 | 5 votes |
def OnInit(self): f = wx.Frame(None) t = wx.TreeCtrl(f, style=0 | wx.TR_HAS_BUTTONS | wx.TR_TWIST_BUTTONS | wx.TR_FULL_ROW_HIGHLIGHT #| wx.TR_HIDE_ROOT #| wx.TR_ROW_LINES | wx.TR_MULTIPLE | wx.TR_EXTENDED #| wx.TR_NO_LINES #| wx.NO_FULL_REPAINT_ON_RESIZE | wx.CLIP_CHILDREN ,) r = t.AddRoot("Profile") g = GuiStats(sys.argv[1]) g.gui_print(t, r) t.Expand(r) f.Show(True) return True
Example #5
Source File: pyslip.py From dials with BSD 3-Clause "New" or "Revised" License | 5 votes |
def __init__( self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.NO_FULL_REPAINT_ON_RESIZE, ): """Initialize the canvas. parent reference to 'parent' widget id the unique widget ID pos canvas position size canvas size style wxPython style """ wx.Panel.__init__(self, parent, id, pos, size, style) # Bind events self.Bind(wx.EVT_PAINT, self.OnPaint) self.Bind(wx.EVT_SIZE, self.OnSize) # Disable background erasing (flicker-licious) def disable_event(*pargs, **kwargs): pass # the sauce, please self.Bind(wx.EVT_ERASE_BACKGROUND, disable_event) # set callback upon onSize event self.onSizeCallback = None
Example #6
Source File: hypercube.py From spectral with MIT License | 4 votes |
def __init__(self, data, parent, id, *args, **kwargs): global DEFAULT_WIN_SIZE self.kwargs = kwargs self.size = kwargs.get('size', DEFAULT_WIN_SIZE) self.title = kwargs.get('title', 'Hypercube') # # Forcing a specific style on the window. # Should this include styles passed? style = wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE wx.Frame.__init__(self, parent, id, self.title, wx.DefaultPosition, wx.Size(*self.size), style, kwargs.get('name', 'Hypercube')) self.gl_initialized = False attribs = (glcanvas.WX_GL_RGBA, # RGBA glcanvas.WX_GL_DOUBLEBUFFER, # Double Buffered glcanvas.WX_GL_DEPTH_SIZE, settings.WX_GL_DEPTH_SIZE) self.canvas = glcanvas.GLCanvas( self, attribList=attribs, size=self.size) self.canvas.context = wx.glcanvas.GLContext(self.canvas) # These members can be modified before calling the show method. self.clear_color = tuple(kwargs.get('background', (0., 0., 0.))) \ + (1.,) self.win_pos = (100, 100) self.fovy = 60. self.znear = 0.1 self.zfar = 10.0 self.target_pos = [0.0, 0.0, 0.0] self.camera_pos_rtp = [7.0, 45.0, 30.0] self.up = [0.0, 0.0, 1.0] self.hsi = data self.cubeHeight = 1.0 self.rotation = [-60, 0, -30] self.distance = -5 self.light = False self.texturesLoaded = False self.mouse_handler = MouseHandler(self) # Set the event handlers. self.canvas.Bind(wx.EVT_ERASE_BACKGROUND, self.on_erase_background) self.canvas.Bind(wx.EVT_SIZE, self.on_resize) self.canvas.Bind(wx.EVT_PAINT, self.on_paint) self.canvas.Bind(wx.EVT_LEFT_DOWN, self.mouse_handler.left_down) self.canvas.Bind(wx.EVT_LEFT_UP, self.mouse_handler.left_up) self.canvas.Bind(wx.EVT_MOTION, self.mouse_handler.motion) self.canvas.Bind(wx.EVT_CHAR, self.on_char)