473,387 Members | 1,464 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,387 software developers and data experts.

How to GetClassName in Python

Hi,
I want to know how to getclassname of application from python..In python There is no method like GetClassName...
Is there any other Method ...I kindly give some example in python..
If anyone answer to the above problem....I will be very thankfull to you...

Note:- Using Python Application, I want to Get the ClassName of any Application.
Jul 18 '05 #1
2 2699
"bala" <bl*@srasys.co.in> wrote in message news:<ma*************************************@pyth on.org>...
Hi,
I want to know how to getclassname of application from python..In
python There is no method like GetClassName...
Is there any other Method ...I kindly give some example in python..
If anyone answer to the above problem....I will be very
thankfull to you...

Note:- Using Python Application, I want to Get the ClassName of any
Application.
--


You can access it by the attribute __class__ of the object.
--Hemanth
Jul 18 '05 #2
On Fri, 28 Nov 2003 10:11:27 +0530, "bala" <bl*@srasys.co.in> wrote:

This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C3B597.FC516DF0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
I want to know how to getclassname of application from python..In =
python There is no method like GetClassName...
Presumably you want to access this win32 API:
----
GetClassName
The GetClassName function retrieves the name of the class to which the specified window belongs.

int GetClassName(
HWND hWnd, // handle of window
LPTSTR lpClassName, // address of buffer for class name
int nMaxCount // size of buffer, in characters
);
----

Most people here probably think of something different when you say "class" ;-)
IOW, best to mention the windows connection, if it's not strictly a Python question.

There are extension modules that will let you get at the win32 api. E.g.,
see Mark Hammond's win32all at

http://starship.python.net/crew/mham...Downloads.html

or Thomas Heller's ctypes module at

http://starship.python.net/crew/theller/ctypes/

Is there any other Method ...I kindly give some example in python..
If anyone answer to the above problem....I will be very =
thankfull to you...

Note:- Using Python Application, I want to Get the ClassName of any =
Application.
------=_NextPart_000_0009_01C3B597.FC516DF0
Content-Type: text/html;


If you want to avoid annoying some people here (good strategy if you want help ;-)
please try to avoid posting HTML to the newsgroup.

Regards,
Bengt Richter
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Kartic | last post by:
Hi, Declare Ansi Function GetClassName Lib "user32" Alias "GetClassNameA" ( ByVal hWnd As IntPtr, ByVal lpClassName As System.Text.StringBuilder, ByVal nMaxCount As Int32) As Int32 I am...
2
by: stephen.garner | last post by:
Hi, I am using the IntPtr FindWindow(string lpClassName, string lpWindowName); to get the handle for a window (notepad in this case), I am then using int GetClassName(IntPtr hWnd, out...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.