Install Windows XP on the Asus Eee PCInstalling Windows XP on the Asus EEE pc using a single USB flash drive. Please note this tutorial works on all computers not just the Asus EEE PC. To complete this tutorial you need a 3. Windows XP or Windows Vista installed on your home PC. What youll need USBPREP8 alternative downloadPe. To. USB alternative downloadBootsect. Special Note If you use the program Nlite be sure to keep the manual installation files as the USBprep. Extract the files in Bootsect. The next step is to extract USBprep. Pe. To. USB. Next copy the Pe. To. USB executable into the USBprep. Inside of the USBprep. The window that opens will look like this Press any key to continue. You next window will look like this These settings are preconfigured for you all you need to do now is click start. Once the format is complete DO NOT close the window just leave everything as it is and open a command prompt from your start menu type cmd in the search bar or run box depending on your version of windows. Inside of the command windows go to the directory you have bootsect. Now type bootsect. R NOTE R is the drive letter for my USB stick if yours is different you need to change it accordingly. What this part does is write the correct boot sector to your USB stick, this allows your PC to boot from the USB stick without it nothing works. Please note When running the bootsect. USB stick, if you have a window open bootsect. If all went well you should see Bootcode was successfully updated on all targeted volumes. Now you can close this command prompt dont close the usbprep. You window you see now should look like this If it doesnt try pressing enter. Now you need to enter the correct information for numbers 1 3. Press 1 and then enter. A folder browse window will open for you to browse to the location of you XP setup files aka your cdrom drive with xp cd inPress 2 and enter a letter not currently assigned to a drive on your PCPress 3 and enter the drive letter of your USB stick. Press 4 to start the process. The script will ask you if its ok to format drive T. This is just a temp drive the program creates to cache the windows installation files. This is meant to be a comprehensive guide on how to get started coding a cross platform GUI application using python. For achieving this we will use Eclipse with the. In computing, regsvr32 Microsoft Register Server is a commandline utility in Microsoft Windows operating systems for registering and unregistering DLLs and ActiveX. Windows PowerShell, anciennement Microsoft Command Shell MSH, nom de code Monad, est une suite logicielle dvelopp par Microsoft qui intgre une interface en. Press Y then enter. Once its done formating press enter to continue again, you can now see the program copying files to the temp drive it created. Once this is done press enter to continue again. Next you will see a box pop up asking you to copy the files to USB drive yesno you want to click yes. Once the script has completed copy files a popup window asking if you would like to USB drive to be preferred boot drive U select YES on this window. Now select yes to unmount the virtual drive. Ok we are done the hard part, close the usbprep. Now make sure your EEE pc is configured with USB as the primary boot device. Insert your USB drive and boot up the EEE. On the startup menu you have two options, select option number 2 for text mode setup. From this point on it is just like any other windows XP installation deleterecreate the primary partition on your EEE pc and format it using NTFS. Make sure you delete ALL partitions and recreate a single partition or you will get the hal. Once the text mode portion of setup is complete it will boot into the GUI mode you can press enter after the reboot if your too excited to wait the 3. Once the GUI portion of setup is complete you will again have to boot into GUI mode this will complete the XP installation and you will end up at you XP desktop. It is very important that you DO NOT REMOVE THE USB STICK before this point. Once you can see your start menu it is safe to remove the usb stick and reboot your pc to make sure everything worked. This method has advantages over all current no cdrom methods of installing XP to the EEE. You do not have to copy setup files in DOS to the SSD and install from there. It gives you access to the recovery console by booting into text mode setup, and it gives you the ability to run repair installations of XP if you have problems later on. I hope this worked out for you and please post feedback to the comments section. Please note due to the amount of comments this article has received you must now click on Post a Comment below the existing comments to view the most recent feedback in a popup window. Setting up IDE and creating a cross platform Qt Python GUI application. This is meant to be a comprehensive guide on how to get started coding a cross platform GUI application using python. For achieving this we will use Eclipse with the plug in Py. Dev and Py. QT which is python bindings for the cross platform UI framework QT. My aim is to make this guide as thorough as possible so if you already know some of the following parts please just skip them. If anything is missing or you find something unclear please leave a comment and I will correct it. The outline of we are going to do is Download and install Python. Download and install Py. Qt. Download and install Eclipse. Download and install Pydev. Getting code completion for Py. QT in Eclipse. Creating files and coding a tiny Py. QT GUIDownload and install Python. First you need python installed on your computer. I suggest you download Python 2. For Windows users, use the windows installer suitable for your system. They will suggest you install Python in c python. I have done so aswell. Usually I dont like cluttering my c with catalogs but for this I make an exception. After install is done it is nice to make python available in the command prompt regardless of the catalog you are using. Do this by adding c python. PATH in your environment variables. You find your environment variables by right clicking on My computer, select properties and go to advanced settings. You should now be able to go to your command prompt and type python to start python. This is used when you are installing new libraries and trying out python commands. Download and install Py. Qt. 4Py. Qt is a set of Python bindings for Qt. It is needed to make Qt classes available in Python. For more info on Py. Qt check out the What is Py. Qt section at Riverbank Computing. Update Install SIPAs Will Stich thanks again Will commented below you first need to download and install SIP to get Py. Qt to work. Do this by downloading SIP from the Riverbanks Computing download page. In this tutorial we will use sip 4. Extract the contents of the zip where ever you please. I will put it in c sip 4. When that is done you can open the command prompt run cmd and go to your SIP folder c sip 4. Type c python. SIP will be configured. Installing Py. Qt is pretty straight forward. Go to the Py. Qt. Py. Qt version that corresponds to your python version you are using. In this example we use Py. Qt Py. 2. 6 gpl 4. The windows installer will installer should do all the work for you so if you installed Python in C Python. When done your Py. Qt. 4 installation should be saved in C Python. Libsite packagesPy. Qt. 4. Download and install Eclipse. Eclipse installation is pretty straight forward. I chose Eclipse IDE for Java developers but I think any version works fine for our purpose. Unpack into program files or where you wherever. Heck you could probably put it on a USB stick if you want to. Download and install Pydev. Pydev is a great plugin for Eclipse that allows python syntax highlighting and code completion. It can be installed in two ways either you download and unpack the files into the plug in folder in your Eclipse directory or you use the installation manager in Eclipse. I suggest you use the installation manager So, start eclipse, choose a workspace you want to use and go to Help Install new software. Press Add and enter a name of the plugin Pydev and the pydev plugin update URL http pydev. Follow the steps in the installation guide. You might get a bunch of dialog boxes warning you about stuff, I just pressed yes all the way and it worked fine. The Eclipse intallation manager, installing Py. Dev. When that is done we can create our first Python project with Pydev. Your File New menu should look like the image below. Select Pydev Project. A new dialog box will open. Write the name of your project in the Project name field. If this is the first time you create a Python project you will need to configure your Python interpreter. Do so by clicking on the Click here to configure an interpreter not listed link. A new dialog box will open that looks like the one in the image below. Before finding the Python interpreter. Press the Auto Config box and Pydev will hopefully find your installed python interpreter. The auto config dialog findings should open in a new dialog that looks like the one below. Select the ones selected in the figure below and click OK. Auto finding the Python Interpreter. Now this might be over pedagogical but your Python Interpreters box should look like the figure below. Press OK we are done with the interpretersThe Python Interpreters found. Now press Finish to create your Pydev project. Eclipse and Pydev will create a src folder and show the referenced Python interpreter. Getting code completion for Py. QT in Eclipse. Not having code completion while learning something new or using a new library is a pain so lets try to avoid that To get code completion for your Py. QT library we need to add it to the external libraries included in the project. Go to the menu Project Properties Py. Dev PYTHONPATH External Libraries Add source folder. Add the path where you have installed your Py. QT files. They are most likely, if you used the windows installer, locaded in C Python. Libsite packagesPy. Qt. 4. If all is well you should have something that looks like the figure below. Setting up the Py. QT in external libraries. Creating files and coding a tiny Py. QT GUINow we are done with the development environment thingsLets try if this thing works First thing we need to do is to add a main module. Do this by right clicking on your src folder select new Pydev Module. In the Name field enter Main and in the template. You could name the file anything you like, it will work either way, but it is in my opinion always nice to have a startup file called Main. It should look like the image below. Creating a new Py. Dev Project. This will create a new main module for you with the code below. Created on 2 apr 2. Mikael Haln. if name main. Created on. 2apr. Mikael Halnifnamemain pass. Now, since this just is a small example I will put all the code in this file. If you would to start a bigger project you would probably want to create a new file for your user interface. Anyway, we want to create a QT GUI so lets start doing that Im going to describe this process by first showing you the end result and then Im going to describe what the different rows do afterwords. Here is what we will end up with The tiny Py. QT GUI running in Windows. And this is the code you need to get it working. Py. Qt. 4 import Qt. Gui. class Hello. PythonQt. Gui. QWidget. None. superHello. Python, self. initparent. Label Qt. Gui. QLabelSay Hello To Py. QT. hello. Line. Edit Qt. Gui. QLine. Edit. main. Layout Qt. Gui. QGrid. Layout. Layout. add. Widgethello. Label, 0, 0. main. Layout. add. Widgethello. Line. Edit, 0, 1. Layoutmain. Layout. Window. TitleMy Python App. Qt. Gui. QApplicationsys. Python. Widget Hello. Python. hello. Python. Widget. show. sys. Py. Qt. 4 import Qt. Guiclass. Hello. PythonQt. Gui. QWidget def initself,parentNone superHello. Python,self. initparent hello. LabelQt. Gui. QLabelSay Hello To Py. QT hello. Line. EditQt. Gui. QLine. Edit main. LayoutQt. Gui. QGrid. Layout main. Layout. add. Widgethello. Label,0,0 main. Layout. add. Widgethello. Line. Edit,0,1 self. Layoutmain. Layout self. Window. TitleMy Python Appifnamemain import sys appQt. Gui. QApplicationsys. Python. WidgetHello. Python hello. Python. Widget. show sys. Now lets see what that means. Lets start from the top This imports the Qt libraries needed for this little application. We only needed the Qt. Gui so that is what we imported. Hello. PythonQt. Gui. QWidget 1class. Hello. PythonQt. Gui. QWidget This is your Main class. This line creates the class called Hello. Python and says that it should inherit from Qt. Widget which is the base Qt class for all user interface objects. None. superHello. Python, self. initparent def initself,parentNone superHello. Python,self. initparentThis is the class constructor and it will be called when you instantiate the object. These two rows will make this class have no parent and thus making it the main class.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
September 2018
Categories |