Hi,
I have a list, which I get with quotations enclosing it, hence making it a string. So what I get is: '[123, 456]'. My question is that how can I convert this into an actual list. So basically after performing some operation, obtain a list [123, 456] out.
Hi,
I want to know if we can create non-rectangular windows (Windows media player is an example) using Tkinter. I came across a tutorial that showed how to create them using C# and Visual Studio.NET. Tutorial address is listed below:
(http://www.devx.com/dotnet/Article/21448)
More...
Hi,
I want to calculate the size of a file or a pickled object. So say if a file is 2Kb (displayed in Windows file explorer) then I want the same information be displayed in python too.
reasonfile = open('test.csv', 'r')
#----I don't know the command to calculate size of a file--
print "File...
Hi,
I am using a csv module to read a spreadsheet. Now what I want to do is change one of the rows in the spreadsheet. I do not want the same row repeated again when I csv.writer to write a row. I simply want to read a row from csv file, change a value in that row and write it back into the...
I want to convert a string into a hex value without the quotations. So for example I have:
s='0x'
r='01'
sr=s+r
//when I print sr it gives me '0x01'
what I want to do is to convert it in hex value by getting rid of the quotations and just having value as 0x01.
Is there function which...
I am having trouble logging into my WindowsXP home edition. When I start the computer it loads and displays the Welcome screen where you can click on the user(s) icon to load XP settings of that particular user. However when I click it, it goes into the desktop but immediately comes out of it to...
Hi,
Simple question. I have a frame and a canvas and I want to store the contents of these in a variable. Can any please help me with that? Here is my code:
canvas .frame1.canvas1
pack .frame1.canvas1
.frame1.canvas1 create rectangle 50 50 250 250 -fill red
set c $.frame1.canvas1
line...
Hi,
I am trying to convert a canvas into a postscript file, which I can do with few lines of code, for example:
self._wCanvas = Canvas(self._wControlFrame,
width=210, height=400)
self._wCanvas.create_text(210, 100, text="Hello")
self._wCanvas.pack()...
Hi,
I am trying to run multiple eps files in a single ps file. These eps files were created by Tkinter (Python) automatically and contain a rendition of a canvas. So, each eps has a graph, calendar rendered in it. I can actually view these in GSView by simply double clicking on them.
Now I...
Hi guys,
Thanks alot for your answers to my previous questions. They were really helpful. I have another question regarding calling C functions from tcl procedures. For example:
proc sendData {} {
set a 12
set b 8
sendToC $a $b ------ //sendToC is a C procedure which I...
I know I have asked a similar question before but this one is a little tricky:
Given:
global chip
global reg
global reg${chip}x${reg}
What I want to do is display the contents of
reg${chip}x${reg} by looping since chip is from 1 to 2 and reg is from 0 to 31. Here is what I have:
set c 1...
Hi guys,
I have a listbox setup. I have few entries in it. Now what I want to do is to deselect it. Meaning a user cannot go into the listbox and choose an entry (select the entry by pressing a button). Basically a user can just view the listbox with entries in it. Your help would be really...
Hello everyone,
My code (in a single file) is getting bigger and bigger. Is there any way of seperating parts of my code into seperate files yet be able to run my code. ?
Hi,
I was wondering how to convert hexidecimal value say F into its int represntation of 15. And show it on screen. Please ignore the question below it (the one I asked about hexadecimal conversion) i have figured it out.
Please answer this question though. Thanks.
Hi guys,
Similar sort of question to the one I asked before (Binary Conversion). This time I was wondering how can I display a hexadecimal representation of a binary number or string.
For example, suppose I have a list of 8-bits:
set bitList "0 0 0 0 1 0 1 0"
By just examining it...
Binary Conversion??
Hi guys,
Sorry for repeating the same message but I forgot about the subject. PLEASE REPLY TO THIS THREAD AND IGNORE THE BOTTOM ONE. Bear with me, this is my second time posting anything. I am stuck on one more problem here. I want to convert an integer into 8-bit binary...
Hi guys,
Thank you for your help last time. I am stuck on one more problem here. I want to convert an integer into 8-bit binary format and then show that 8-bit binary on the screen. So for example suppose I want to convert integer 7:
Integer ------ 7
8-binary --- 0000 0111
Display on screen...
Hi,
Actually this is my first time posting a message here. So if I do make any mistakes please bear with me.
Here is just few lines of codes first:
while {$rowIteration < [llength $addressList]} {
set m [lindex $addressList $rowIteration]
global cbox$m
set tempVar $cbox$m ///HERE IS THE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.