From taleinat at gmail.com Sun Apr 1 00:48:17 2007 From: taleinat at gmail.com (Tal Einat) Date: Sun, 1 Apr 2007 01:48:17 +0300 Subject: [Idle-dev] A Question about idle In-Reply-To: <45fecf4a.13743ceb.04b9.ffffa238@mx.google.com> References: <45fecf4a.13743ceb.04b9.ffffa238@mx.google.com> Message-ID: <7afdee2f0703311548k444c03e6ica74404ccbf18e59@mail.gmail.com> There is a bug in the IDLE configuration dialog in the 1.1 versions. (Why not update to a newer version?) You can change the value manually in your user config files: 1. Go to the .idlerc directory (~/.idlerc on unix/linux, Documents and Settings\\.idlerc on WinXP) 2. Open config-main.cfg with a text editor (create it if it doesn't exist) 3. Add the following two lines: [Indent] num-spaces = 2 I don't have version 1.1.1 handy, but hopefully this should help... let me know if it works out. - Tal Einat On 3/19/07, Liang Zou wrote: > > Hi, > > > > When I set the new indent width to 2, it won't be saved. When I open a new > window next time, it will reset to 4. I was wondering if I can save the > default indent width to 2. > > > > I tried to use the set indentation defaults function in the option dialog, > but it doesn't work at all. I'm using idle 1.1.1 > > > > Thank you very much for your help. > > > > Sincerely yours, > > Liang Zou > > > > > > > > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/idle-dev/attachments/20070401/befd791e/attachment.htm From noreply at sourceforge.net Wed Apr 11 09:34:58 2007 From: noreply at sourceforge.net (SourceForge.net) Date: Wed, 11 Apr 2007 00:34:58 -0700 Subject: [Idle-dev] [ idlefork-Bugs-1698204 ] [IDLE-BUG] HP-UX Message-ID: Bugs item #1698204, was opened at 2007-04-11 00:34 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=109579&aid=1698204&group_id=9579 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: [IDLE-BUG] HP-UX Initial Comment: I recently tried to use IDLE in HP-UX system and I have encountered some errors. I have corrected it myself, but like to report these errors/Bugs. My system configuration HP-UX B.11.00 python 2.5 Tcl ActiveTcl8.4 Locale "en_US.iso88591" First time it stated ok without any problem, but the next time it gave the follwing error message: The Error happend when the IDLE tred to add the filenames in to the recent file list. =============================== filename: /mmc/users/gg00215/mypy/contact6.py Traceback (most recent call last): File "/usr/local/bin/idle", line 5, in main() File "/mmc/users/gg00215/Python-2.5/Lib/idlelib/PyShell.py", line 1402, in main shell = flist.open_shell() File "/mmc/users/gg00215/Python-2.5/Lib/idlelib/PyShell.py", line 275, in open_shell self.pyshell = PyShell(self) File "/mmc/users/gg00215/Python-2.5/Lib/idlelib/PyShell.py", line 811, in __init__ OutputWindow.__init__(self, flist, None, None) File "/mmc/users/gg00215/Python-2.5/Lib/idlelib/OutputWindow.py", line 16, in __init__ EditorWindow.__init__(self, *args) File "/mmc/users/gg00215/Python-2.5/Lib/idlelib/EditorWindow.py", line 248, in __init__ self.update_recent_files_list() File "/mmc/users/gg00215/Python-2.5/Lib/idlelib/EditorWindow.py", line 735, in update_recent_files_list ufile_name = self._filename_to_unicode(file_name) File "/mmc/users/gg00215/Python-2.5/Lib/idlelib/EditorWindow.py", line 284, in _filename_to_unicode return filename.decode(self.filesystemencoding) TypeError: decode() argument 1 must be string, not None =============================== * The reason I have found out that the argument is None in File "/mmc/users/gg00215/Python-2.5/Lib/idlelib/EditorWindow.py", line 284, in _filename_to_unicodein becuase the line 36:filesystemencoding = sys.getfilesystemencoding() of /mmc/users/gg00215/Python-2.5/Lib/idlelib/IOBinding.py returns None: * The reason for the sys.getfilesystemencoding() is giving None is becuase of my locale which is en_US.iso88591. Correction: * I tried to fix the problem and I assumed the lcoale en_US.iso88591 is the default file system encoding. * And I have modified the function _filename_to_unicode by adding one except statement for TypeError, the code given below. =========== def _filename_to_unicode(self, filename): """convert filename to unicode in order to display it in Tk""" if isinstance(filename, unicode) or not filename: return filename else: try: return filename.decode(self.filesystemencoding) except UnicodeDecodeError: # XXX try: return filename.decode(self.encoding) except UnicodeDecodeError: # byte-to-byte conversion return filename.decode('iso8859-1') #raja next twolines except TypeError: return filename.decode('iso8859-1') =========== after that it worked nice, but becuase of curiosity I tried to open a text file which had a Japanese name. Then I have encountered anotehr error/bug in IOBinding.py at function askopenfile() so I have modified the the code as below again adding an except statement ================== def askopenfile(self): dir, base = self.defaultfilename("open") if not self.opendialog: self.opendialog = tkFileDialog.Open(master=self.text, filetypes=self.filetypes) filename = self.opendialog.show(initialdir=dir, initialfile=base) #raja try except try: if isinstance(filename, unicode): filename = filename.encode(filesystemencoding) return filename except TypeError: return filename.encode('iso8859-1') ======================= Now it works without any problems. I am not a professional programmer, so I would greatly appreciate if you can fix this error with proper measures. Thanks a lot in advance Raj ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=109579&aid=1698204&group_id=9579 From gnewsg at gmail.com Wed Apr 11 17:23:32 2007 From: gnewsg at gmail.com (billiejoex) Date: Wed, 11 Apr 2007 17:23:32 +0200 Subject: [Idle-dev] IDLE and multi-tabs Message-ID: <6f68619e0704110823m2a6148afm46b72fa60ddb5236@mail.gmail.com> Hi there. I would like to know: does tkinter supports multiple-tabs? Does exist a sort of modified version of IDLE supporting multiple-tabs? I'd really appreciate such feature in IDLE... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/idle-dev/attachments/20070411/efc18639/attachment.htm From taleinat at gmail.com Thu Apr 12 13:42:59 2007 From: taleinat at gmail.com (Tal Einat) Date: Thu, 12 Apr 2007 14:42:59 +0300 Subject: [Idle-dev] IDLE and multi-tabs In-Reply-To: <6f68619e0704110823m2a6148afm46b72fa60ddb5236@mail.gmail.com> References: <6f68619e0704110823m2a6148afm46b72fa60ddb5236@mail.gmail.com> Message-ID: <7afdee2f0704120442r41dc5a57t1e87f01178eca9f4@mail.gmail.com> On 4/11/07, billiejoex wrote: > > Hi there. > I would like to know: does tkinter supports multiple-tabs? Does exist a > sort of modified version of IDLE supporting multiple-tabs? I'd really > appreciate such feature in IDLE... > Hi, Unfortunately, the Tk toolkit does not natively support tabbed panels. However, tabbed panels have been implemented using the Tk toolkit - check out IDLE configuration dialog for an example. Tabbed pages in IDLE is the most requested new feature for IDLE for some time. However, development of new features for IDLE is currently not happening, because nobody is willing to spend the time and effort required. Personally I would love to work on this, but I simply do not have the time. I am currently a University student, and outside my studies and my part-time job, have very little time for other projects. Perhaps in my summer break... Sincerely, - Tal Einat -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/idle-dev/attachments/20070412/a526f8e2/attachment.html From taleinat at gmail.com Fri Apr 27 08:25:03 2007 From: taleinat at gmail.com (Tal Einat) Date: Fri, 27 Apr 2007 09:25:03 +0300 Subject: [Idle-dev] Fwd: [Catalog-sig] IDLE extensions category In-Reply-To: <200704270943.22696.richardjones@optushome.com.au> References: <7afdee2f0704120526p408208bbq771500b15fb76d12@mail.gmail.com> <200704270943.22696.richardjones@optushome.com.au> Message-ID: <7afdee2f0704262325s7d4ca673w71d50f747c865ae2@mail.gmail.com> Woohoo, an IDLE category in the cheeseshop! I'll drink to that! I'll upload some of my extensions (such as SearchBar) ASAP. Anyone else who has written an extension, please upload it to the cheeseshop under this category! I recall an HTML output extension was posted here by Michael Haubenwallner (the link he posted doesn't work any more), and Saul Spatz was working on an extension which saves a log of your last shell session... how's that coming along? - Tal ---------- Forwarded message ---------- From: Richard Jones < richardjones at optushome.com.au> Date: Apr 27, 2007 2:43 AM Subject: Re: [Catalog-sig] IDLE extensions category To: catalog-sig at python.org Cc: Tal Einat On Thu, 12 Apr 2007, Tal Einat wrote: > IDLE supports extensions, which can add all sorts of functionality to IDLE. > Several such extensions are included with the IDLE that is packaged with > the Python distribution. Several other such extensions have been written > but are hard to find and obtain. The Cheese Shop is the ideal place for > IDLE extensions which aren't (yet) shipped with the main version of IDLE/ > > A category is needed since IDLE extensions are pieces of code with little > meaning outside the context of IDLE, and of course to make them easier to > find and browse. I have added "Framework :: IDLE" Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/idle-dev/attachments/20070427/0f65e0df/attachment.html From michael at d2m.at Fri Apr 27 10:42:58 2007 From: michael at d2m.at (Michael Haubenwallner) Date: Fri, 27 Apr 2007 10:42:58 +0200 Subject: [Idle-dev] Fwd: [Catalog-sig] IDLE extensions category In-Reply-To: <7afdee2f0704262325s7d4ca673w71d50f747c865ae2@mail.gmail.com> References: <7afdee2f0704120526p408208bbq771500b15fb76d12@mail.gmail.com> <200704270943.22696.richardjones@optushome.com.au> <7afdee2f0704262325s7d4ca673w71d50f747c865ae2@mail.gmail.com> Message-ID: <4631B792.9050009@d2m.at> Tal Einat schrieb: > Woohoo, an IDLE category in the cheeseshop! I'll drink to that! > > I'll upload some of my extensions (such as SearchBar) ASAP. > > Anyone else who has written an extension, please upload it to the > cheeseshop > under this category! > > I recall an HTML output extension was posted here by Michael Haubenwallner > (the link he posted doesn't work any more), > and Saul Spatz was working on an extension which saves a log of your last > shell session... how's that coming along? > Thank you for the information. I just added the IDLE2HTML extension to the cheeseshop. Michael -- http://www.zope.org/Members/d2m http://www.planetzope.org