How to make a tkinter canvas background transparent?

Question: How to make a tkinter canvas background transparent? The only possible config(… option, to set the background to nothing c.config(bg=”) results with: _tkinter.TclError: unknown color name “” To get this result: you have to hold the chess board and figures within the same .Canvas(…. self.canvas = Canvas(self, width=500, height=200, bd=0, highlightthickness=0) self.canvas.create_rectangle(245,50,345,150, fill=”white”) self.image … Read more

Android OpenGL ES Transparent Background

Just some simple changes that I did to get this to work. On my GLSurfaceView.Renderer: public void onSurfaceCreated(GL10 gl, EGLConfig config) { gl.glDisable(GL10.GL_DITHER); gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST); gl.glClearColor(0,0,0,0); gl.glEnable(GL10.GL_CULL_FACE); gl.glShadeModel(GL10.GL_SMOOTH); gl.glEnable(GL10.GL_DEPTH_TEST); } On my GLSurfaceView: setEGLConfigChooser(8, 8, 8, 8, 16, 0); getHolder().setFormat(PixelFormat.TRANSLUCENT);

How to make Gtk+ window background transparent?

I changed the alphademo example to draw a button instead of the red circle. This application draws the button on a 400×400 transparent window. When you click on the window the application shows/hides the title bar. #include <gtk/gtk.h> #include <gdk/gdkscreen.h> #include <cairo.h> static void screen_changed(GtkWidget *widget, GdkScreen *old_screen, gpointer user_data); static gboolean expose(GtkWidget *widget, GdkEventExpose … Read more