SunQuest
           Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old January 10th, 2004, 06:37 PM
Nick889 Nick889 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 Nick889 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Nick889
Tkinter help (warning: noobish question)

ok, i have edited this post now.

I managed to figure out how to change the fonts and size, and all thats left is to figure out how to cut/copy/paste text and also limit it with selected text and if no text is highlighted then everything in the text box will be effected. By selected/highlighted i mean where you drag your cursor over it and it becomes blue you know.

Thanks for the help, and it is greatly appreciated. Incase your wondering its for an email program for my dad. If it turns out to be good i may release it as open source publicly. If I can get the help i need from someone i will even give you half credit to the program as well.

Thanks again.

Last edited by Nick889 : January 10th, 2004 at 11:45 PM.

Reply With Quote
  #2  
Old January 11th, 2004, 02:57 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 19 m 5 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Sad to say but there doesn't seem to be that much about Tkinter online, probably better of with a book like "Programming Python"...

Anyway they best link i've found for TK is on http://www.pythonware.com/library/index.htm

Mark
__________________
programming language development: www.netytan.com Hula


Reply With Quote
  #3  
Old January 12th, 2004, 09:14 AM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
Hi Nick,

The code fragment may help a bit - it copies to the clipboard selected text or if no range selected then all the text. After copying the text the highlighting is removed.

self.text is a tk multiline ScrolledText box.
Code:
        if not self.text.tag_ranges(SEL):
            #copy everything
            self.text.tag_add(SEL,'1.0',END)
        text = self.text.get(SEL_FIRST,SEL_LAST)
        self.text.tag_remove(SEL,'1.0',END)
        self.parent.clipboard_clear()
        self.parent.clipboard_append(text)

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Tkinter help (warning: noobish question)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway