Search Results

Search found 10804 results on 433 pages for 'attribute keys'.

Page 27/433 | < Previous Page | 23 24 25 26 27 28 29 30 31 32 33 34  | Next Page >

  • testing existing attribute of a @classmethod function, yields AttributeError

    - by alex
    i have a function which is a class method, and i want to test a attribute of the class which may or may not be None, but will exist always. class classA(): def __init__(self, var1, var2 = None): self.attribute1 = var1 self.attribute2 = var2 @classmethod def func(self,x): if self.attribute2 is None: do something i get the error AttributeError: class classA has no attribute 'attributeB' when i access the attribute like i showed but if on command line i can see it works, x = classA() x.attributeB is None True so the test works. if i remove the @classmethod decorator from func, the problem disapears. if i leave the @classmethod decorator, it only seems to affect variables which are supplied default values in the super-class's constructor. whats going on in the above code?

    Read the article

  • KeyDown event is not Working for Arrow keys ,Home , End ,Pageup,Pagedown and other similar keys in s

    - by Subhen
    Hi , I want to over ride the selection behaviour of listbox Items. We can traverse through listbox items using Up and Down arrows where as I wan to traverse the list using Left and Right arrow keys. While I am trying to add the key down event for Listbox, It shows almost all key presses except for Arrow Keys, Home, End and Similar keys. I have the following Code: private void listArtist_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key.ToString() == "Enter") { //Go to Some Page } else { MessageBox.Show(e.Key.ToString()); } } I am clue less about it. Please help. Thanks, Subhen

    Read the article

  • TextMate Theme Select Attribute Value

    - by HelpAppreciated
    Hello, I need to change the color of certain attributes/tags. I am switching from Dreamweaver and making the skin has been really hard in TextMate. As you can see, I want to change the a and img tags along with all of their attributes. The closest I've come to find is entity.other.attribute-name which only works with id for some reason entity.other.attribute-name.id Bonus would be the scope selector for the value of an attribute, e.g. "Logo" alt in the above example. Thank You!

    Read the article

  • Generate multiple attribute?

    - by acidzombie24
    ATM i cant quiet imagine how this will work. I'm sure it can be done. I notice a pattern use in my attribute where i always use 3 specific attributes together. Take the below as an example [MyAttr(4, @"a"), MyAttr(41, "b"), MyAttr(45, "ab")] Mine is much more complicated but i would like to define one attribute with more params to generate the data above. How might i do that? Lets say my one attribute will look like this MyAttr2(4, 41, "a", "b"); //4+41=45, "a"+"b" = "ab" How might i generate the 3 MyAttr to apply to a class using MyAttr2?

    Read the article

  • How to stop Microsoft IntelliType Pro (itype.exe) from interpreting keys

    - by Asaf R
    Intellitype Pro is a nice software that helps me when I'm using my Ms keyboard. When I'm on the road using my laptop's built-in keyboard it interprets some of the keys incorrectly and reacts on them, for instance the Fn + Down Arrow opens Windows Live Messenger (in addition to lowering brightness, which is governed by Dell's driver). I want to stop Intellitype when I'm on the road and reload it when I'm home using the external keyboard. Note: original problem (conflict with itype) posted here.

    Read the article

  • Windows 8 shortcut keys via RDP

    - by Paul
    It is possible to access any of the new shortcut keys found in Windows 8 via RDP, such as those in the accepted answer in What are the new shortcuts for Windows 8?, without having to redirect all Win key combinations through to the remote session. I am using both local and remote at the same time, and so would prefer alternate shortcuts for the remote session. Such as the basic ones listed at the Microsoft site here, and for example Alt+Home will return you to the Start screen. What about the more interesting shortcuts?

    Read the article

  • macosx not recognizing held down keys on boot

    - by Jonathan Mayhak
    I'm running fully updated snow leapord on a new model imac. I am unable to boot into macosx. I do have build 7600 of windows 7 that the computer will automatically boot to. I do not have the bootcamp manager on windows 7. The computer is not recognizing any held down keys when I try to either boot from cd or force macosx boot or anything. How can I get the computer to load up osx?

    Read the article

  • XP Pro product keys

    - by Bill
    I have a very serious problem. After my XP Home OS was trashed by rogue software - a trial of a thing named TuneUp - I did a clean install, including HDD reformat of Windows XP Pro from a purchased OEM disk. This was Service Pack 2, subsequently upgraded to SP3. I had conclusively mislaid the product key. I had to access data on the machine VERY urgently and I did not then know that under some circumstances Microsoft might agree to provide a replacement. I found what I now know must have been a pirate key on the Net which enabled installation but NOT activation. This of course left me functional but 30 days before meltdown - about 20 days left as I write this. Various retailers want around £100 for retail with matching product key. - this would be paying twice over just to continue use on the same computer. I have neither need nor intention of installing XP Pro on any other computer. I have tried a number of applications claiming to deal with this problem but none of them work. A Belarc profile shows that the pirate key has replaced the original one on the system. I have now found two keys, one of which might be the original, but neither work. I am about to upgrade the HDD and it looks like I will just be passing the problem on when I install XP. I have retrieved a key from the disk, but it is seemingly one Microsoft use in production and does not work. It is 76487-OEM-0015242-71798. The keys I have, one of which which might or might not be the original, are CD87T-HFP4G-V7X7H-8VY68-W7D7M and FC8GV-8Y7G7-XKD7P-Y47XF-P829W (or P819W - I believe it to be the latter, but the box will not accept it). The pirate key which has enabled this install and which is now stored on the system but will not activate is QQHHK-T4DKG-74KG7-BQB9G-W47KG. In these circumstances is it likely that Microsoft would issue a replacement? Is there any other solution? I am not trying to defraud anyone, just to keep on using the product I legitimately bought. Bill

    Read the article

  • Alternative to arrow keys in Google Chrome location bar

    - by saltycrane
    I like Google Chrome because it is fast but I don't like using the arrow keys in the location bar to complete URLs. Is there any extension, or setting I'm missing, that allows me to use the Tab key (or other customizable key) for completion like in Firefox? I am an Emacs user and am aware of Conkeror. I just wanted to give Google Chrome a fair chance. Edit: I'm using version 4.0.266.0 on Linux.

    Read the article

  • Getting individuals keys replaced on netbook.

    - by Wesley
    Hi all, Just today during a freak accident, a book got tossed onto my Samsung N120 netbook while it was open and the 'G' and 'T' key flew off. Part of the plastic underneath broke off. I was wondering where I would be able to find suppliers for individual keys for my netbook. Also, would it be better to replace the entire keyboard? Thanks in advance.

    Read the article

  • remove registry keys using reg.exe in a batch script

    - by Lex
    I've written this little batch script to help me auto-clean the registries of 300+ identical PC's of some very specific registry keys. It works right up to the point of passing the key variable to the "reg delete %1" command. @echo off C: cd C:\Program Files\McAfee\Common Framework\ framepkg.exe remove=agent /silent setlocal for /F %%c in ('REG QUERY HKLM\SOFTWARE /s^|FIND "HKEY_"^|findstr /L /I /C:"mcafee"') do call :delete %%c endlocal goto :EOF :delete reg delete /f %1 pause Any and all debugging help would be extremely appreciated!

    Read the article

  • After upgrade to Lucid, computer doesn't respond to clicks or pressed keys until X restart

    - by Victor Stanciu
    I upgraded to Lucid today, and after the update the display is "frozen". I can move the cursor, but I cannot click on anything, nor does it respond to any keys. The only way to fix it is to SSH into the machine (which, by the way, works just fine), and kill and start X. Then I'm taken back to the login screen and everything works. This happens every time I boot. Let me know if there are more details that I can provide.

    Read the article

  • firefox shortcut keys to switch between tabs

    - by doug
    i know about ctrl-tab and ctrl-shift-tab to switch between the tabs inside the mozilla firefox browser. I also know about ctrl+ to access a certain tab from the opened tabs of mozilla firefox. I need to know if is any tab regarding arrow keys in order to switch between tabs ty

    Read the article

  • Allow users to ssh to specific user through ldap and stored public keys

    - by iElectric
    I recently setup gitolite, where users access git repository with "gitolite" user through ssh. Now I would like to integrate that into LDAP. Each user has pubkey in LDAP and if he has "git" objectClass, he would be able to access "gitolite" user through ssh. I know it's possible to store public keys in LDAP, I'm not sure if it possible to allow authentication in "gitosis" account based on objectClass. EDIT: To clarify, with objectClass git, user "foobar" would be able to login as "gitolite" through ssh

    Read the article

  • lenovo thinkpad sl500 fn keys & hdd protection on ubuntu

    - by Infestor
    (i use ubuntu 10.04 64bit) i cant get most of my fn keys to work in this laptop. i especially need fn+f8, which switches between trackpoint & touchpad. what i tried: sudo nano /etc/modules (added lenovo-sl-laptop to the file) then: sudo modprobe lenovo-sl-laptop this failed: FATAL: Module lenovo_sl_laptop not found. as for the hdapsd i dont have it installed, since i dont know how to configure it (i guess it helps hdd protection).

    Read the article

< Previous Page | 23 24 25 26 27 28 29 30 31 32 33 34  | Next Page >