lobibeautiful.blogg.se

Texpad todo
Texpad todo







  1. #Texpad todo code#
  2. #Texpad todo series#

Tools/python: Drop shebangs from library files Tools/pygrub: Factor out common setup.py parts Tools: Delete trailing whitespace in python scripts Setuputils as the replacement), so someone is going to have to rework all our Released ahead of the Xen 4.18 release, is deleteing distutils (recommending Relatedly, and a critical/blocker for Xen 4.18. Provides no dependency information at all. Reasonably useful and also not PV specific, depends on a 3rd party module but The problematic remaining script is xenpvnetboot which, while looking

#Texpad todo series#

This series deals with xencons (which is a not-invented-here telnet), variousīits of cleanup, and various fixes for shebangs. Most of these want converting, and should be reasonably easy, but I don't have The following scripts are installed, and given a python3 shebang, but are not Jan Beulich, Stefano Stabellini, Julien Grall, George Dunlap,ĭespite previous statements to the contrary, Xen still does not support Python 3. Marek Marczykowski-Górecki, Bernhard Kaindl, George Dunlap, ` (7 more replies) 0 siblings, 8 replies 23+ messages in threadįrom: Andrew Cooper 14:15 UTC ( / raw)Ĭc: Andrew Cooper, Wei Liu, Anthony PERARD, 14:15 ` tools/python: Drop pylintrc Andrew Cooper However, give it a try and report what happens.Tools: More Python 3 fixes (part 1 of N) All of help / color / mirror / Atom feed * tools: More Python 3 fixes (part 1 of N) 14:15 Andrew Cooper This should solve all the problems you have right now.

texpad todo

This will make it global and all functions will be able to use it. Remove the self variables from the program, and put this into the function: global textPad The error that is thrown is a result of your program not knowing what class you are pulling the self instance from.

texpad todo

Your Issue With Selfįinally, why are you using self at all? You are not using any classes-you need to globalize the variable. The pack() function returns a NULL and will nullify your widget. This should fix it, but I could be wrong.ĭo NOT just do textPad = ScrolledText(root, width = 80, height = 20).pack() textPad = ScrolledText(root, width = 80, height = 20) Right now, the instance of your widget is not preset, so your program has no idea where to pull the value from. The first allows you to pick exactly where you want it to go, the second puts in a (technically) default location. To answer what is going wrong: you need to actually place the widget into the window frame. I make whatever edits I like, then it saves before closing when I hit escape, problem being is that it doesn't like closing because of the line that I mentioned previously in my post.įirst of all, kudos on identifying the problem. It's supposed to be a fast little thing that opens a to-do list and displays what's already on the list in the text box. Since I have posted the whole thing I may as well explain the rationale behind everything. #contents = (self, 1.0, END) # The line in question TextFile = open('/home/colin/documents/prog/py/todopad/todo', 'w')

texpad todo texpad todo

TextFile = open('/home/colin/documents/prog/py/todopad/todo', 'r') TextPad = ScrolledText(root, width = 80, height = 20) Root = Tkinter.Tk(className = "TodoPad")

#Texpad todo code#

This has been a very long-winded way of asking: How can I retrieve the contents of a ScrolledText text pad and save it to a variable or directly write it to a file? And also an explanation about the error message?ĮDIT: As requested, here is the code for the entire thing. Although I don't understand the error at all. I know this is the problem, because the program executes and terminates without issue when this line is commented out. Results in the following error: Exception in Tkinter callbackįile "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1535, in _call_įile "todopad.py", line 24, in save_and_quitĬontents = (self, 1.0, END)ĪttributeError: Event instance has no attribute 'textPad' I mention this because it is in this method that the program runs into problems. I'm working on a simple Notepad-like program that saves files and closes the program when the escape key is pressed.









Texpad todo