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 TouchToneTommy 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: *

  • Users: shussai2
  • Content: Threads
  • Order by date
  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

    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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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.
  9. shussai2

    Canvas to postscript

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

    Running Multiple EPS files in one PS File

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

    Calling C function from TCL

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

    Combining variables

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

    ListBox Deselect?

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

    TCL Code division

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

    Hex to Int Conversion

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

    Hexadecimal Conversion???

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

    Binary Conversion??

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

    Hi guys, Thank you for your help

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

    DeclaringVariables

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

Part and Inventory Search

Back
Top