How to design a GUI Python app properly?

Hi guys. As motivation to actually learn Python, I want to carry out a fairly simple application that's been brewing in my head for months; a "game manager" that a gamer can use to keep track of the games he owns, the games he's beaten, and any specific challenges he's completed in said games.
The problem is that I can't seem to wrap my head around Python. I look through its docs to solve problems but I almost always end up lost. I come from PHP, which is supposedly sloppy, but it's also very easy to get almost anything done quickly. In my frustration, I proved that I could get more progress in 15 minutes in PHP than I had gotten in 2 hours in Python. I was right, but I know that PHP isn't the right tool for the job. I want to make an actual desktop application that relies on an sqlite db.
With my frivolous backstory out of the way, could anyone offer any enlightenment on Python? I've tried the tutorials, I've tried the docs... where can I go to learn not only how to code my app, but how to design it? Design is more important than syntax, imo, because it relies on concepts which form the foundation of whatever app you're building.
I can post an overview of how I want the app to behave, if that would help others advise me on how to build it in Python. I'd really like to pick the language up, but it's being anything but "easy to learn".

Are you sure you've read the helpful tutorial? If you can't grasp it, perhaps PHP has finally penetrated the shell of coding sense surrounding your brain and started eating. (I used to be close to that point. Now I believe Python is god.)
Oh, and never start with something as big as a full-blown graphical application. Trust me, it is never as simple as it first seems when you conceive the idea. Start with small, one-file utilities and work your way up from there. Consider downloading the full documentation so you always have a local copy.
And remember: If your code seems ugly, it probably is. There is almost always a better way in Python.
Last edited by Peasantoid (2010-02-06 05:14:43)

Similar Messages

  • How to design socket client-server app for 2-way communication

    Hi, I am writing a client-server application. I have a single server and many clients. Each client will need the ability to send information to the server at any time. The server will also need the ability to send information to a client at any time. Its this second part that I am not sure how to design. Would I need to create a SocketServer on each client to accept incoming messages, or is there a better way? Thanks

    scranchdaddy wrote:
    Don't my requirements sound a lot like an IM application, where a chat server might need to send a message to a chat client at any time?Not really. If that is what you are designing
    in my opinion one could easily be forgiven for thinking you were deliberately obfuscating your goal...
    How does the server know where the client is? Does it know the IP address of the client?I would imagine the server would contain a directory of IPs? I'm not sure.
    What happens if the client is not running?Then I guess the message would not get delivered.
    What happens if the client is behind a firewall that does not allow incoming connections?How do IM chat clients work? How have people solved this in the past?Typically the server would only care about clients currently connected to the server.
    Maybe you should re-think your design. I don't really have a design, just requirements, that's why I'm writing this post.Your subject says "+How to *design* socket client-server app for 2-way communication+".
    Are you saying you expect someone else to do the design for you?

  • How to design a GUI which has n number of component are changing?

    Hello,
    I have a problem in designing a GUI. The Gui contain number of components which being changing on the frame depending on the action.
    For example:
    Initial frame contain only the combobox which has few data( let we take tennis, cricket, football..)
    If the user select one of this then the frame should add few more component like
    cricket should add 24 combobox for selection of the team and the member and the fields to show the information of the individual details.
    tennis: should remove the cricket related component and replaced by tennis related component. ....
    One more thing is
    If we select one of the content of the combo box then it should display the one more combo box.
    If we select one from this combo box then it should display one more this should be continue till the user select the end in the combo box.
    Please help in this part to complete the designing of the Gui. I want whether we can do add number of components dynamically in a single frame? If possible how?
    Thanks in advance
    Regards,
    kakolia

    Post Author: geckos
    CA Forum: General
    You need to find a commonality between the tables.  The date fields contain a "month" value that you could use. I don't know what the database source is but here is a suggestion in "psuedo SQL" to get you started. The NVL is an Oracle function that replaces a NULL instance with something, in this case a '0'. The "month" function extracts out the numeric month. Without modifying your database structure to add the common keys, you will have to create a "custom command" query when creating your datasource based on a query similar to the one below.
    SELECT    a.Mo,    (a.A - b.B) BalFROM    (    SELECT  NVL(SUM(Money),0) A,                  Month(Date) Mo    FROM  Sale    GROUP BY Month(Date)   ) a,   (   SELECT  NVL(SUM(Money),0) B,                  Month(Date) Mo   FROM  Buy   GROUP BY Month(Date)   ) bWHERE   a.Mo = b.Mo

  • How to design multitab report in rtf in oracle apps r12

    Hi,
    How to design multitab report in rtf in oracle apps r12
    one consultant working on a multiple projects in this report ....how to design rtf by using multi tab.
    thanks,

    Hi,
    <?if://P_CONSULTANT_NAME='' and P_CLIENT_NAME= ''?> means print the content below this condition if both consultant name and client name is null in xml.
    <?if://P_CONSULTANT_NAME !='' and P_CLIENT_NAME != ''?> means print the content below this condition if both consultant name and client name is not null in xml.
    <?if://P_CLIENT_NAME!='' and P_CONSULTANT_NAME = ''?> means print the content below this condition if consultant name is null and client name is not null in xml.
    <?if://P_CONSULTANT_NAME!='' and P_CLIENT_NAME = ''?> means print the content below this condition if consultant name is not null and client name is null in xml.
    please share your sample rtf and xml file so that i can have a look at it and help you if i can.
    Thanks,
    Vinod

  • How to design an iPhone app that uses both Portrait and Landscape in Flash CS6

    So I have created an App that has a different menu when it is held portrait, but changes when held landscape. I can get the navigation to work, However I am unsure how to design landscape pages inside Flash?
    My stage is set to the standard 640x960 air for iOS, which gives me perfect portrait pages, But when I tilt my phone to landscape the screen obviously changes, and it looks weird. Im hoping someone can tell me how i can get this view inside Flash, while still having the portrait screens too?
    I want to have both Portrait and Landscape in the same app, and am currently so confused how I can design this inside flash?
    I hope this makes sense, and that someone could throw some help my way!

    you can change the display depending on stage orientation but it doesn't make sense to "..swap the stage orientation between screens".
    to change the display, use a StageOrientationEvent.ORIENTATION_CHANGE event and listener:
    stage.addEventListener("orientationChange", orientationChangeF);
    function orientationChangeFr(e:StageOrientationEvent):void{
    trace(e.afterOrientation.toString());

  • How can I install the proper App Store app to complete my upgrade?

    I have Snow Leopard (10.6.8) installed on my iMac 27 (late 2010) but the app store app is not supported on this version. How can I get the proper app store app for SLP? My goal is to get back to Maverick.
    I was running Maverick just fine but ran out of disk space. I had Best Buy install a Seagate 3TB drive. I reinstalled OS X 10.6.4 from my Install Disk. Then I upgraded the "software upgrades" to get 10.6.8.  Somehow I upgraded the App Store app to a version that is not supported on my current version of 10.6.8.
    I appear to be stuck. Unable to go to App Store to down load Maverick.
    Also, with the new Seagate 3TB drive, the fan runs continuously. Any ideas how I can move forward?
    Message was edited by: sunbuck7

    sunbuck7 wrote:
    I have an iMAC 27 Mid-2010
    Regarding your fan issue I believe I am correct in assuming BBY did not install the correct HD. My suggestion is to first do several SMC resets which are designed to help with running fans, carefully read http://support.apple.com/kb/ht3964. for information on what a SMC reset addresses. You can find instructions for doing the SMC resets in https://discussions.apple.com/docs/DOC-3603. A SMC reset will ONLY help if the correct HD was installed though.
    If the reset does not fix the issue then return the machine to BBY, inquire if the drive they use has heat sensors integrated into the HD they installed and if not then get them to install the correct HD to address the issue.

  • How to delete pre-loaded apple apps?

    how to delete pre-loaded apple apps?

    Abi99 wrote:
    The cable is OK, otherwise you would have not see your RM-xxx at all. Please, patch again and use the Nokia 6700 classic as recommended.
    @Abi99 WOW! It worked like a charm.
    It didn't work when I patched MobiMB by replacing my mobile code RM-949 before 6700 ( see attachment, hexeditor.png, navigation point - 1 ), now I placed my mobile code RM-940 after 6700 ( see attachment, hexeditor.png, navigation point - 2 ). Annnnnnnnnnnnd! BOOOM! This is what I got! (see attachment, mobimb3.png)
    Thank you sooooooooooo much @Abi99 . It was my mistake, I didn't follow your tutorial properly. First, I hesitated to install hex editor on my PC, when my AV detected it as adware. But I trust you, I disabled my AV and gone ahead and enabled my AV. It worked just fine.  
    BTW, is there any list of items, which are safe to delete?
    Attachments:
    hexeditor.png ‏77 KB
    mobimb3.png ‏12 KB

  • How to create custom GUI interface for Cisco router?

                       Hello,
    I am working on a Cisco solution and I have my router configured for the solution I need. However, if a non-cisco person needs to use my solution then I think he will need a GUI interface which will have few "buttons" which when clicked will run some Cisco commands on Cisco router to make it work. Is there a way to design such GUI interface which is compatible with Cisco routers? I know Cisco has SDM, but that is too involved and detailed, which is useful only for people who know atleast a little bit about Cisco. Here I am looking at crowd who will have 0 knowledge of Cisco.
    Please let me know if something like this can be done. If yes, how and how easily?
    Thank you.

    There are lots of ways to do this - you can use SNMP or even HTTP to push or pull commands from Cisco devices. How easy it is to create a GUI depends on your programming skills. I would guess a simple web page triggering backend scripts would be the easiest way to do this.

  • How can I build a Web App with Component Combination

    I learned OpenUI 5 for a while, since it's open source version release. It's really a great web front-end framework!
    Now I'm working on a little web app. I design it start from a root module. And I wanna make any other view modules as a stand-alone package. (e.g. Something like Widgets can be make as a Component, and I can instance it anywhere I want). From learning of OpenUI, I think Component should be a good choice for my web app module.
    But there is some trouble. When I make two Component with a parent-child relationship.Once the child Compont's router execute navTo method, the hash will be replace but not append. And the parent Component will be changed too.
    The question is : how to design the route pattern can make the parent-child Components works both fine? Andreas Kunz

    Hi Siqi,
    currently there is no Child/parent relationship build in the framework, but you could do it.
    All your child component need is the first part of the pattern from the parent component, you have to pass this one to the child component, and then create the routes dynamically:
    parentPattern + "/myChildComponent"
    Then the parent and the child will both react correctly on a hashchange.
    Best Regards,
    Tobias

  • How do you shut off the apps that are running? Before the update you hit the button twice then it would showing all the apps and u can then shut them off.

    How do you shut off the apps? Before update I just hit the side button twice then it would show all the apps. Then I would shut them off.

    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf
    View running apps.
    Double-click the Home button to reveal the multitasking display. Swipe left
    or right to see more. To switch to another app, tap it.
    Quit an app.
    If an app isn’t working properly, you can force it to quit. Drag the app up from the
    multitasking display. Then try opening the app again

  • TS1702 How do I report a scam app in AppStore?

    How do I report a bad app on AppStore? Finger print scanner by silver carring inc... Downloaded a radio app instead of finger print scanning app...the website of developer doesn't exist...
    I want to report this to AppStore so they can remove the app and also give me a refund for $2.
    I believe AppStore as a storefront is not doing their work properly... Aren't they supposed to check if the app u r buying is same one which is downloading?

    Try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account (Store > View My Apple ID on iTunes 11) and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that app and use the 'Report a Problem' link and fill in details about the problem (iTunes support should reply within, I think, about 24 hours).
    Some people have had a problem with the 'report a problem' link (it's been taking people to this site on a browser instead of showing a form in iTunes) - if it does that to you then try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page.

  • What is a quick alternative to launching an enterprise DPS app if Apple Store rejects the App? We are under a major deadline and can't wait for Apple. We want to host the app elsewhere. How do we host our DPS app on our client's website?

    What is a quick alternative to launching an enterprise DPS app if Apple Store rejects the App? We are under a major deadline and can't wait for Apple to approve. We want to host the app elsewhere. How do we host our DPS app on our client's website? Thanks.

    Unless I misunderstand the question, you can't do what you're asking to do. Apple doesn't allow you to bypass their store and host public apps on a website. The exception is an enterprise app, which requires an Enterprise account with both Apple and Adobe. This type of enterprise app can be distributed only within the company. If that's what you want to do, you can learn more here:
    Digital Publishing Suite Help | Creating viewer apps for private distribution
    Distributing enterprise iOS viewer applications with Digital Publishing Suite | Adobe Developer Connection
    Another option is to add the development app to several devices and use those for your demo.

  • Updated to an iphone 4s from iphone 4. Did backup and sync but some apps have not been copied to the 4s although they do show up on the iphone4. How can I get my missing apps?

    Updated to an iphone 4s from iphone 4. Did backup and sync but some apps have not been copied to the 4s although they do show up on the iphone4. How can I get my missing apps?

    Download Past Purchases
    http://support.apple.com/kb/HT2519
    Log into iTunes using the account the Purchase was made with... Click on Buy... and a notice will come up saying you already have it... do you wish to download it again... Click Yes...

  • TS1702 Does anyone know how to resolve the problem of apps not being able to download in the App Store? After the IOS 6 update I haven't been able to download any apps.

    Does anyone know how to resolve the problem of apps not being able to download in the App Store? After the IOS 6 update I haven't been able to download any apps.

    Maybe here:
    IOS 6 App store crash: Apple Support Communities

  • How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed and you don't know what it is now?

    How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed by the former husband and you don't know what it is now?  And you set up your own new ID and account but can NOT access the updates, from the App store for the many apps that you already have, because they require that you sign in with that former now inaccessible ID and account and password?  Call it a problem of modern times and changing relationships, if you want to be charitable.

    So I guess it will only be new apps that I download that are allowed to give me their updates while 13 updates wait for me on an ID I can no longer access.
    Yes...  sorry.
    In the future, if need be, you can re download your purchases for free  >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Good rule of thumb is to back up your purchases regardless  >  Mac App Store: Backing up your app purchases

Maybe you are looking for