473,835 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tkinter and Graphics

Hi I was wondering if there is anyway in Tkinter to create GUIs using
Graphics, like windows media player or other tools like that

basically so the interface wouldn't be your standard interface

any ideas, links to tutorials, or examples

is appreciated

Cheers
Jul 18 '05 #1
5 3694
Andrew <no****@hotmail .com> wrote:
Hi I was wondering if there is anyway in Tkinter to create GUIs using
Graphics, like windows media player or other tools like that


I guess you could do just about anything with Canvas, it that's what you
mean.
Alex
Jul 18 '05 #2
>>>>> "Andrew" == Andrew <no****@hotmail .com> writes:

Andrew> Hi I was wondering if there is anyway in Tkinter to create
Andrew> GUIs using Graphics, like windows media player or other
Andrew> tools like that

Andrew> basically so the interface wouldn't be your standard
Andrew> interface

Andrew> any ideas, links to tutorials, or examples

Andrew> is appreciated

This sounds like enthought's enable toolkit, which is still under
development. Basically, they use the antigrain graphics library to
develop their own GUI widgets, which can then be embedded in a tk
graphic's canvas, at gtk drawing area, a wx panel, etc. Though enable
doesn't support all of these GUIs currently, I believe, it can in
principle.

http://svn.enthought.com/svn/enthought

I've often wished for something like this in developing matplotlib,
because a lot of work goes into supporting multiple GUIs, and it would
be nice to have a core set of widgets that port across GUIs. Another
approach is anygui, which I've been meaning to look into...

JDH
Jul 18 '05 #3
al*****@yahoo.c om (Alex Martelli) wrote in message news:<1gn98g2.1 uhohpdpev85hN%a l*****@yahoo.co m>...
Andrew <no****@hotmail .com> wrote:
Hi I was wondering if there is anyway in Tkinter to create GUIs using
Graphics, like windows media player or other tools like that


I guess you could do just about anything with Canvas, it that's what you
mean.
Alex


Such as this (below)
(I made this while reading as an refresher for myself, since I'm doing
mostly CGI and web related stuff these days!)

Good interface design!!!

JM

############### #
import Tkinter

bar = 1
cursing = True

def foo(s):
global bar
print bar
bar += 1

def baz(s):
global cursing,rCanvas
if cursing :
cursing = False
rCanvas.config( cursor="pirate" )
else:
cursing = True
rCanvas.config( cursor="")

root = Tkinter.Tk()
rCanvas=Tkinter .Canvas(root, background="whi te")
idPoly=rCanvas. create_polygon( 10,10,10,200,15 0,250,50,100)
rCanvas.tag_bin d(idPoly,"<Butt on-1>",foo)
rCanvas.tag_bin d(idPoly,"<Ente r>",baz)
rCanvas.tag_bin d(idPoly,"<Leav e>",baz)
rCanvas.pack()
root.mainloop()
###############
Jul 18 '05 #4
Andrew <no****@hotmail .com> wrote in message news:<10******* ******@corp.sup ernews.com>...
Hi I was wondering if there is anyway in Tkinter to create GUIs using
Graphics, like windows media player or other tools like that

basically so the interface wouldn't be your standard interface

any ideas, links to tutorials, or examples

is appreciated

Cheers

Check out wxPython ShapedWindow in the DEMO
Jul 18 '05 #5
On Sun, 14 Nov 2004 21:46:27 -0800, Andrew wrote:
Hi I was wondering if there is anyway in Tkinter to create GUIs using
Graphics, like windows media player or other tools like that

basically so the interface wouldn't be your standard interface

any ideas, links to tutorials, or examples

is appreciated

Cheers


Highly recommended: _Python and Tkinter Programming_ by John E. Grayson,
if you can find a copy. (It's out of stock on Manning's site and they
don't offer it in Electronic form.)

http://www.manning.com/grayson

Section 8.7 ("Image Maps"), where the author describes building a GUI that
looks like a TI-82, by using an image of same as the basis for the
interface seems like it could be relevant.

Chapter 9 ("Panels and Machines") also seems like it could be of help to
you. It describes building a GUI modeled on the front panel of an actual
device. It also contains a nice front-end for a digital multimeter with a
rotating knob for setting the current range.

Perhaps you can find a copy on amazon, ebay or a brick-and-mortar store
with slow turn-over.

// Ben
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
7077
by: rhmd | last post by:
I need to create image files (eg bmp or jpeg) of xy scatter graphs (i.e., graphs in which markers denote individual points; the markers need to be small polygons of various sizes, shapes, colors, shadings, etc. and there are thousands on them on each graph). Have been using MS Excel, but its limitations are unbelievable (only whole number sizes, no way around a 56 color palette, only low quality jpeg files so that when I publish the...
2
2180
by: ServantOfTheSecretFire | last post by:
Hi there, I wrote my first Python program this weekend, Conway's Game of Life, and I used Tkinter for the graphics. I thought I had done something wrong when I saw the memory consumption, so I wrote the simplest Tk program I could, and yep, it takes about 40MB of memory! I'm using Red Hat Linux 9.0 and recent versions of the software. Please look at the output below, and tell me if I am confused... ~/python: cat /etc/redhat-release
7
3158
by: John Slimick | last post by:
I want to do a little Tkinter in my 1 credit python practicum, but I am having problems getting everything installed correctly. A sample of the problem is below: ------------------- The python source, test.py ------------------ from graphics import * def main():
1
10785
by: Elaine Jackson | last post by:
Newbie. Playing with the 'turtle' module and wondering if there's a way to save the graphics you make with it. The documentation itself has nothing to say about this, nor (as far as I can tell) does the FAQ list at python-dot-org. Any pointers would be very much appreciated. (In related news, I would also like to find out what's going on with "bounding boxes" in image files - not having them is keeping me from including images in latex...
7
11913
by: SeeBelow | last post by:
Do many people think that wxPython should replace Tkinter? Is this likely to happen? I ask because I have just started learning Tkinter, and I wonder if I should abandon it in favor of wxPython. Mitchell Timin -- "Many are stubborn in pursuit of the path they have chosen, few in
5
5566
by: Sean McIlroy | last post by:
The subject line essentially says it all. Is there a way to do it? If so, where do I look to find out how? Any help will be much appreciated. Thx, STM
8
4500
by: Erik Johnson | last post by:
I am looking for some input on GUI libraries. I want to build a Python-driven GUI, but don't really understand the playing field very well. I have generally heard good things about wxPython. I happen to already own John Grayson's book about Tkinter programming, so that is rather handy if I decide to use Tkinter. I have done some things slightly more involved than "Hello World" in Tkinter - I have never used wxPython. So, basically the...
5
3566
by: Ben Kovitz | last post by:
Hi, I just tried to run Tkinter on OS X 10.3.9 under Python 2.4.3, and I'm getting a bus error as soon as I call Tk(). Googling has turned up info other Tkinter bus errors, but not this one that occurs right away, before doing anything fancy. Tk/Tcl is definitely installed on my computer, as verified by running "wish" and seeing the window come up. "info patchlevel" returns 8.4.5. Here's the tail of the output from python -v:
2
1669
by: David Lees | last post by:
Does anyone have advice on installing Tkinter on s Silicon Graphics machine (under IRIX 6, I think). The SysAdmin at work build Python 2.4.3 for me on the SGI box, but it does not have Tkinter. Are there any prebuilt distributions for SGI machines that include Tkinter? TIA david lees
0
9653
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10526
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10563
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7770
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6970
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5640
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5808
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4435
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.