Stefano Mtangoo 455 Senior Poster

I think you need to brush your knowledge here:
http://zetcode.com/wxpython

Stefano Mtangoo 455 Senior Poster

I was messing around a little with pygame, and I noticed it dose not like the python IDLE...

Have you tried VIDLE
http://vpython.org/vidle/index.html

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

My assumption was wrong.
I thought that after building, the wxWidgets library are being put somewhere and then you can delete that folder. Thanks for the answers :)

Stefano Mtangoo 455 Senior Poster

But why?

Stefano Mtangoo 455 Senior Poster

Welcome! Python have its two Big web frameworks, Django and TurboGears as Ruby have Rails. after checking some videos on web framework and some presentations, I prefer Django over turbo gears and I don't want to learn new language for now (I mean Ruby) to use Rails. If that is what you want to do, Here is a link to Django. Note that Django have free Online book for you :)

www.djangoproject.com

Stefano Mtangoo 455 Senior Poster

After building wxWidgets, I need to free space for any unneeded files. Should I uninstall wxWidgets after buidling? and what exactly building does?

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

Thanks guys,
I'm still pondering and reading stuffs on suggestion. But one question to this "create a stream socket (TCP) on a client-to-client base" How do you do that? I know about sockets on client-server only. I will contact google though

Stefano Mtangoo 455 Senior Poster

can sockets be used to send as big as 10MB?
Is there limitations with sockets?
What are other possible solutions?

Stefano Mtangoo 455 Senior Poster

a process is a program that runs with its own memory block and it own global variables. Processes don't share memory block, and cannot communicate directly except via inter process communication

Threads on other hand is "lightweight" process and share memory block and many other resources that processes don't share. To create a process you need new memory block, while thread share the parent thread's memory.

Single process can spawn many threads and as a matter of fact, a process is a single threaded or multithreaded.
Hope haven't confused you too!

Stefano Mtangoo 455 Senior Poster

Hello All,
I want to copy zipped file from one machine to another in same network. I have the IP and folder of destiny machine, but I'm pondering on the best way to go!

transfering among same drive, I will use shutil module. But what about networked PCs? Should I use FTP module or there is something better. Your suggestion colleagues are invaluable. If you don't mind you can give cons and pros of each suggestion.

Thanks alot!

Stefano Mtangoo 455 Senior Poster

Are the hosting servers yours or you are just hosting somewhere?
If you host yourself, just search for pstats.py as jlm699 suggests. Once you grab that you can know its location. If you use it from remote (i.e hosting somewhwere else) hopeful you will find an FTP program with search capabilities

Stefano Mtangoo 455 Senior Poster

3.x.x is stubborn due to lack of important modules, wxPython and Py2exe being among them

Stefano Mtangoo 455 Senior Poster

What have you done so far?
Remember we have to help you get somewhere, but you must have something :)

Salem commented: <tealc>Indeed</tealc> +36
Stefano Mtangoo 455 Senior Poster

I'm with jlm699. Give us an error log or message.

+1

Stefano Mtangoo 455 Senior Poster

can you post your code? I cannot understand what you posted.
From my little experience, one of common problems is specifying different parent to which the sizer is set. If you use one panel as parent to your widgets then you must use that panel's SetSizer() method. DON'T use panel as parent and use self (which is probably a wx.Frame) to set a sizer.

Wait for your code

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

Ok,
I did configuration and it found some problems and fixed them. I ran again and it found none. Now my Question is, does it run as normal process or as service?

Stefano Mtangoo 455 Senior Poster

Just ignore my commenting and triple quotes. It is just the way I play with codes when testing

Stefano Mtangoo 455 Senior Poster

I Have made it. But I have problem in adding object of class myPanel to foldable panel. Is that possible in the first place?

import wx
import wx.lib.agw.foldpanelbar as fpb

class MyPanel(wx.Panel):
    def __init__(self, parent):
        wx.Panel.__init__(self, parent)
        #Happy Widgetting!
        self.label = wx.StaticText(self, -1, "Testing Panel")
        self.slider1 = wx.Slider(self, -1)
        self.slider2 = wx.Slider(self, -1)
        self.slider3 = wx.Slider(self, -1)

        #Sizers are way to go!
        vbox = wx.BoxSizer(wx.VERTICAL)
        vbox.Add(self.label, 0, wx.EXPAND)
        vbox.Add(self.slider1, 0, wx.EXPAND)
        vbox.Add(self.slider2, 0, wx.EXPAND)
        vbox.Add(self.slider3, 0, wx.EXPAND)

        self.SetSizer(vbox)
        #self.Layout()


class MyFrame(wx.Frame):
    def __init__(self, parent, id, title):
        wx.Frame.__init__(self, parent, id, title)
        self.mainpanel = wx.Panel(self, -1)
        #Happy widgetting!
        #self.panel1 = MyPanel(self.mainpanel) 
        #self.panel2 = MyPanel(self.mainpanel)
        #self.panel3 = MyPanel(self.mainpanel)
        
        images = wx.ImageList(16, 16)
        images.Add(wx.Bitmap("./icons/collapsed.png"))
        images.Add(wx.Bitmap("./icons/expanded.png"))
        
        
        self.foldablepanel = fpb.FoldPanelBar(self.mainpanel, -1, size = (100, 230))        
        fpanel = self.foldablepanel.AddFoldPanel("Volume", foldIcons = images)
        self.slider = wx.Slider(fpanel, -1)
        self.ok = wx.Button(fpanel, -1, "Ok")
        self.panel1 = MyPanel(fpanel)
        #Add them to the panel
        self.foldablepanel.AddFoldPanelWindow(fpanel, self.slider)
        self.foldablepanel.AddFoldPanelWindow(fpanel, self.ok)
        self.foldablepanel.AddFoldPanelWindow(fpanel, self.panel1, flags = fpb.FPB_COLLAPSE_TO_BOTTOM)
        
        self.foldablepanel.AddFoldPanelSeparator(fpanel)
        
        fpanel2 = self.foldablepanel.AddFoldPanel("Choices", foldIcons = images)
        self.choice1 = wx.CheckBox(fpanel2, -1, "Check this")
        self.choice2 = wx.CheckBox(fpanel2, -1, "Try this")
        self.ok2 = wx.Button(fpanel2, -1, "Ok")
        
        #Add them to the panel
        self.foldablepanel.AddFoldPanelWindow(fpanel2, self.choice1)
        self.foldablepanel.AddFoldPanelWindow(fpanel2, self.choice2)
        self.foldablepanel.AddFoldPanelWindow(fpanel2, self.ok2)
        

        """#Sizers are way to go!
        self.panel1 = MyPanel(self.mainpanel)
        self.panel2 = MyPanel(self.mainpanel)
        self.panel3 = MyPanel(self.mainpanel)
        vbox = wx.BoxSizer(wx.VERTICAL)
        vbox.Add(self.panel1, 0, wx.EXPAND)
        vbox.Add(self.panel2, 0, wx.EXPAND)
        vbox.Add(self.panel3, 0, wx.EXPAND)"""

        hbox = wx.BoxSizer(wx.HORIZONTAL)
        hbox.Add(self.foldablepanel, 0, wx.EXPAND)
        self.text = wx.TextCtrl(self.mainpanel, -1, style = wx.TE_MULTILINE)
        hbox.Add(self.text, 1, wx.EXPAND)
        
        #self.Show(True)
        

        self.mainpanel.SetSizer(hbox)
        self.Layout() 


app = wx.App(False)
f = MyFrame(None, -1, "Testing Folded Panel")
f.Show(True)
app.MainLoop()
Stefano Mtangoo 455 Senior Poster

Thank alot,
It worked with 24x24

Stefano Mtangoo 455 Senior Poster

I will update again, may be someone can volunteer to help me moveon

Stefano Mtangoo 455 Senior Poster

Hello,
Why use WinDef while have McAfee?
As far as I know, McAfee hav its own antispyware and there is no need to use multiple AS. So just disable one of them and I advice you disable WinDef

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

I played with registry long ago and would not like to mess up with it (since I'm no longer as expert as I used to be:) ) help me colleagues to add comodo internet security to make it start with windows. I checked configuration and I don't see the option as Comodo user guide says.
Thanks

Stefano Mtangoo 455 Senior Poster

So it must be 32x32? what about 16x16 or 24x24?

Stefano Mtangoo 455 Senior Poster

for quick demo, I have such a small quick code below, I want to put those three panels in side like the win XP's explorer, how do I do that?

I have attached the code and a photo

Stefano Mtangoo 455 Senior Poster

I have two different pyApps, and I want to make a task bar Icons. For one I use .ico file and another .png file. The .ico one works but not the .png file. Does it mean I cannot use PNG file to make taskbar icon?
Here is a code that worked in one and failed in the next

This worked

#Set Icon for the program
icon = wx.Icon("./icons/app.ico", wx.BITMAP_TYPE_ICO)
self.SetIcon(icon)

This failed

#App icon
icon = wx.Icon("./icons/app.png", wx.BITMAP_TYPE_PNG)
self.SetIcon(icon)
Stefano Mtangoo 455 Senior Poster

Here is the full code and DLLs
Please feel free to modify them and repost them.
The most important for me now is to learn through the project, so feel free to point out errors or poor coding styles
Thanks for your valuable time

Stefano Mtangoo 455 Senior Poster

Great !
There it is :)

Stefano Mtangoo 455 Senior Poster

Understand now, thank you :)

Stefano Mtangoo 455 Senior Poster

Have anyone here ever worked or is planning to work with this akrip32.dll? I would like to finish my project which is ripping CD with it, and I'm facing alot of walls. If anyone is willing to advise me on the issue, warmly welcome :)

Stefano Mtangoo 455 Senior Poster

Welcome to the forum!
It will help you to read a book designed for people moving from other languages to Python.
Here: www.diveintopython.org

Stefano Mtangoo 455 Senior Poster

Do you have a book or just refence docs?
Their book is now free and just search forum for it.
I posted it somewher in the forum.
It explains alot and got me up ad running :)

Stefano Mtangoo 455 Senior Poster

Download MSDN on your computer. I have it and the search takes short time

Stefano Mtangoo 455 Senior Poster

I don't think it is open source (Am I wrong?) So Should I contact their developing team?

Stefano Mtangoo 455 Senior Poster

Wow!
Thanks Jlm699 for the great info. Let me see what they can help.
First I have to check their code and see what I can get there

Stefano Mtangoo 455 Senior Poster

Plus that, is it freely and legally released? If not, then consider to beg no more because daniweb is for legal stuffs only. However there are other free books around there:
1. Thinking in C++ two volumes
http://www.lib.ru.ac.th/download/e-books/TIC2Vone.pdf
http://www.lib.ru.ac.th/download/e-books/Tic2Vtwo.pdf
2. C++ Beginner's Guide
http://msdn.microsoft.com/en-us/beginner/cc305129.aspx

Hope it help :)

Salem commented: TIC++ definite thumbs up! +36
Stefano Mtangoo 455 Senior Poster

I need this to work with my Huawei modem
I have Win Vista 32 bit

Stefano Mtangoo 455 Senior Poster

Please someone help me testing what handle do you get.
When I use the handle to get Table of content, I get garbages on screen and they differ each time I run the application. Before I check the TOC function, I need to be sure that the handle is valid.

So just remove the return 0 and then tell me what handle does it print. And if you have any idea if the handle is valid :)
Thanks for giving your time

Stefano Mtangoo 455 Senior Poster

Thanks friend for pointing that out!
I guess I was sleeping-awake when I was writing that.
How can I tell it return 0 and then ask why :)
It now returns 1x0 as handle. Let me see if I can proceed!
Thanks again

Stefano Mtangoo 455 Senior Poster
Stefano Mtangoo 455 Senior Poster

I have scratched my head to just get a handle and I'm hitting a wall somewhere. Please help to correct me. I cannot get the handle to cdrom and hence I cannot proceed

with thanks

main.h hasn't changed


main.cpp

//Get CD handle
HCDROM CDRip::GetCDHandle(LPGETCDHAND lpcd ){

    //define a pointer to the function
    typedef HCDROM (*ptrGetCDHandle)(LPGETCDHAND lpcd );
    //Create a pointer function to access the DLL function
    ptrGetCDHandle GCDHandle;

    //Load the DLL
    HINSTANCE hDLL = LoadLibrary("akrip32.dll");
    //DLL loaded successful?
    if (hDLL!=0){
        std::cout<<"Loaded DLL"<<std::endl;
        //Get Function address
        GCDHandle = (ptrGetCDHandle)GetProcAddress(hDLL, "GetCDHandle");
        // Function loaded Succesful?
        if (GCDHandle !=0){
            //GETCDHAND cdhandle;
            //lpcd = &cdhandle;
            //GCDHandle(lpcd);
            std::cout<<"Handle in function is: "<<GCDHandle(lpcd)<<std::endl;

            FreeLibrary(hDLL);
        }
        // Function Loading failed
        else{
            std::cout<<"Error, can't load function GetVersion!"<<std::endl;
            FreeLibrary(hDLL);
        }
    }
    //DLL Loading failed
    else std::cout<<"Error! Cannot Load Library"<<std::endl;
    return 0;

}

app.cpp

# include "main.h"
#include <iostream>
//testing function below

//main application
int main()
{
    CDRip instance;    
    GETCDHAND cdhandle;
    LPGETCDHAND lpcd;
    lpcd = &cdhandle;
    HCDROM handle ;
    handle = instance.GetCDHandle(lpcd);
    std::cout<<"The Handle is: "<<handle<<std::endl;
Stefano Mtangoo 455 Senior Poster

C++ How to Program by Deitel
Thinking in C++ by Eckel, Bruce (Because you can download)
There is one beiginner's guide by Schidilt at Micrisoft's VC++ express page

Stefano Mtangoo 455 Senior Poster

cool,
I'll go for pickle.
Thanks Guys

Stefano Mtangoo 455 Senior Poster

Cool :)
Ready to hear what other says

Stefano Mtangoo 455 Senior Poster

Hi,
I'm finding if there is freeware equivalent of Buttonshop here:
http://www.kristanixsoftware.com/buttonshop/

I was having once from www.giveawayoftheday.com
but my HHD got crashed :(

Stefano Mtangoo 455 Senior Poster

Iam finishing my little database based small project and I need to save current status for next time(The save option :) )
The stuff I want to save is just list of tuples and I have to save:
1. The List of tuple
2. The index of the last element I added

So what is the best way to go? XML or Pickle? or Anything else?
Note: I dont have knowledge on XML .
Cheers :)

Stefano Mtangoo 455 Senior Poster

I want to make simple MSN/YAHOO Chat. I have some knowledge on sockets but I don't know what more I need to know. So My Question Is, what is pre-requisites before I jump into the Project.
NOTE: The project is for learning Python/wxPython
Thanks :D