Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. shussai2

    determining a list from a string

    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.
  2. shussai2

    Backup newbie problem

    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?
  3. shussai2

    How to Create Non-rectangular windows in Tkinter

    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...
  4. shussai2

    size of a file or a pcikled object

    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...
  5. shussai2

    editing a csv 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...
  6. shussai2

    Converting String to a Hexadecimal value

    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.
  7. shussai2

    Converting String to a Hexadecimal value

    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...
  8. shussai2

    Trouble launching XP

    Thank you guys. I will try what you have suggested. Thanks once again.
  9. shussai2

    Trouble launching XP

    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...
  10. shussai2

    storing contents of a Tk widget

    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...
  11. shussai2

    storing contents of a Tk widget

    Yes I want to store the rectangle in the variable.
  12. shussai2

    storing contents of a Tk widget

    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...
  13. shussai2

    EPS to Image

    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...
  14. shussai2

    EPS to Image

    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?
  15. shussai2

    EPS to Image

    Hi, I am trying to convert an eps file into an image of any format. Can anyone please provide me with some suggestions.
  16. shussai2

    Running Multiple EPS files in one PS File

    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)...
  17. shussai2

    Running Multiple EPS files in one PS File

    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...
  18. shussai2

    Running Multiple EPS files in one PS File

    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
  19. shussai2

    Running Multiple EPS files in one PS File

    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...
  20. shussai2

    Running Multiple EPS files in one PS File

    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

Part and Inventory Search

Back
Top