This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<title>ESKV Widget Spam Example</title> | |
<!-- The CSS in the style tag is used to set a black background and maximize available client space for the canvas--> | |
<style> | |
body{ | |
background-color: rgb(0, 0, 0); | |
text-align: center; | |
} | |
html, body, canvas { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
# This module monkey patches the docx library to add support for Windows Enhanced Metafile images (EMF) | |
# Put in a local folder and "import docx_emf_patch" to enable EMF support. | |
from __future__ import absolute_import, division, print_function | |
import docx | |
from docx.image.exceptions import UnrecognizedImageError | |
from docx.image.constants import MIME_TYPE | |
from docx.image.exceptions import InvalidImageStreamError |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/plugins/contrib/wxSmith/wxwidgets/wxsitemeditor.cpp | |
=================================================================== | |
--- src/plugins/contrib/wxSmith/wxwidgets/wxsitemeditor.cpp (revision 10323) | |
+++ src/plugins/contrib/wxSmith/wxwidgets/wxsitemeditor.cpp (working copy) | |
@@ -72,6 +72,9 @@ | |
InitializeResourceData(); | |
InitializeVisualStuff(); | |
m_AllEditors.insert(this); | |
+ Connect(wxID_COPY, (wxObjectEventFunction)&wxsItemEditor::Copy); | |
+ Connect(wxID_PASTE, (wxObjectEventFunction)&wxsItemEditor::Paste); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gi.repository import Gtk | |
from gi.repository import Gdk | |
from gi.repository import cairo | |
from gi.repository import GObject | |
class ProportionalLayoutChild: | |
def __init__(self,widget,left,right,top,bottom): | |
self.widget=widget | |
self.left=left |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.uix.floatlayout import FloatLayout | |
Builder.load_string(''' | |
#:kivy 1.6 | |
<MyLayout>: | |
my_rect_size: self.size[0]/2, self.size[1]/2 | |
canvas: | |
Color: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#simple program to illustrate potential memory leak (circular reference?) with pyglet | |
import pyglet | |
from pyglet.gl import * | |
import gc | |
gc.set_debug(gc.DEBUG_LEAK) | |
window = pyglet.window.Window() | |
glClearColor(0.2, 0.4, 0.5, 1.0) |