473,394 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Urgent Help Required working with Python and xlwt

Hello People,

I have used xlwt and python to create a workbook and four sheets in it. I'm done with editing the first sheet, Now I would like to open the sheet 2 that I have created in beginning and would like to edit it. I'm taking an input from user in beginning to choose which sheet he wants to open if he enters 2, sheet 2 should open and editing should be done on it instead of any other sheet same for 3 and 4. Kindly confirm how can i do it. I'm attaching a code that I have used but this isnt working at all.

Lastly i'll really appreciate if you can let me know how can I print a cell on the python GUI screen.

Below is the code I used for opening sheet 2 if user inputs 2

elif sheetChosen == 2:

* * worksheet2 = wb.get_sheet(2)

* * worksheet2.write(1, 1, 'Welcome to Worksheet 2')
Jun 11 '19 #1
0 1210

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: PiedmontBiz | last post by:
Greetings I am working on web site (class project) which has a personality assessment survey section. I originally wrote a standalone program in RapidQ basic. I decided to rewrite the program...
0
by: David Stockwell | last post by:
Thanks for the help in breaking the problem down into manageable pieces This is the code snippet I ended up using: (I'm decoding excel formatted files) the file is an email i created with pine...
1
by: mch2k2 | last post by:
Hello All I have just started working on Pyhton. I need urgent help regarding Python Network Programming. I want the elctronic version of the Book: Foundations of Python Network programming by...
0
by: adsheehan | last post by:
Hi, I am embedding Python into a multi-threaded C++ application runnig on Solaris and need urgent clarification on the embedding architecture and its correct usage (as I am experience weird...
3
by: mike_basis | last post by:
Hi All, >From last 2 weeks I am despirately trying to get the installation steps of R/3 4.7 on SQL server 2000 on Windows 2k or 2003 server. This is for a distributed environment, I mean central...
2
by: Trevor Hennion | last post by:
Hi, I am producing a Web based database application for a customer and could do with some help producing pdf documents from the data. The project uses Apache. Postgresql and Python CGI scripts...
2
by: yeruvavasavi | last post by:
Algorithm 1: Write python programs to translate the following algorithm so that the computer can execute it. Algorithm for ceaser cipher. Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ<br> Cipher: ...
0
by: fatimang | last post by:
hi to all,,,,,,what site can i download tk for pyhton......and what is the appropriate database to use in python....and how to connect it.... .................thank you..............
55
by: sturlamolden | last post by:
I have recently been playing with a kd-tree for solving the "post office problem" in a 12-dimensional space. This is pure cpu bound number crunching, a task for which I suspected Python to be...
1
by: Vivek Ganti | last post by:
I have made a batch file (auto.bat) as follows: cd C:\Program Files (x86)\Wireshark tshark -i 3 -w "C:\Users\Vivek Ganti\pcap_file.pcap" tshark -nr "C:\Users\Vivek Ganti\pcap_file.pcap" -T text...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.