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,
If it is not too late try this command:
C:\Program Files\MySQL\MySQL Server 4.1\bin>mysqldump --add-drop-table --user root --password=uo7883 imc_qa > imc_qa.sql
Does anyone know how to backup a database using python MySQLdb package?
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...
Well I was trying to use PIL to get particular pixels in a bitmap. But after I posted this I figured out the solution given above. Although what I do is convert the equivalent s='0x01' into a int by using string conversion base to 16.
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,
My goal is to save the contents of the canvas in a variable then use Image extension to write the contents stored in that variable as a gif image. Hence to do so this what I am doing now:
package require BLT
package require Img
frame .frame1
pack .frame1 -padx 10 -pady 10
canvas...
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,
When i convert an eps file into a jpeg or bmp, the resulting image contains the image on a whole page. Basically, I want just the graphic (in the bounding box) in the eps file to be converted into an image, not the whole paper. Also, does anyone know the command in Ghostscript to convert a...
Hi Mr. Greer,
I can convert an eps file into a gif, bmp, etc using Ghostview. However Ghostview is not freeware. Do you know any freeware utility which does convert eps to image?
When I convert the ps file (with landscape option defined) into pdf, the page is displayed as landscape in Acrobat. From Acrobat it prints it as landscape too. Also, I have included a piece of code in my program which directly sends a PS file to the default printer (which can handle PS format)...
Hi,
I am trying to setup a landscape option in my ps file with multiple eps in it. Right now this is what I have:
%!PS
<< /PageSize [792 612] >> setpagedevice
/ImageData
currentfile
<< /Filter...
Hi Mr. Greer,
I will definitely ask my manager if the company is willing to cover the cost of the training. If so, then I would be happy to participate in your training course.
Regards,
Sajjad
Hi Mr. Greer,
I am located in Ottawa, Canada. I am a Systems Engineer in a biomed company here. As you have probably figured out, I am very new to Postscript. I am trying to quickly convert my Python GUI objects into one postscript file and print them.
Actually I have another question, I have a...
Hi,
Actually this very basic question which I am having trouble with. How do I print a color text string. So for example, I want to print "Hell World" string in colour Blue. I am trying to use setcolor but I keep getting stack error when I open it in GSView.
Regards,
Sajjad
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.