How to Horizontally Resize Text Layout in Python Shell? - python-2.7

I'm using Python 2.7 on Windows and my output which is a table containing 15 rows needs more than the width of my entire screen to be displayed properly.
I used pandas.set_option('display.width', 1920) to get this working. However, word wrap occurs. I want the Python Shell to get a Horizontal Scroll Bar. Checked under configure IDLE and couldn't find it. It just needs to be like the simple option of word wrap we get with Notepad.
EDIT: I've already tried that method explained in the question marked possible duplicate. That doesn't create a working toolbar. The text is still wrapped. The toolbar graphic is present but it is greyed out and has no functionality.

Here is the 11 year old opened issue showing IDLE doesn't support horizontal scroll bar. IDLEX as pointed out here provides extensions to IDLE and workaround that, apparently not working for Python 2.7.

Related

Xcode tab switch cmd+1 2 3

Im looking for a way to be able to switch tabs in Xcode not using next/previous tab but rather using modifier+1,2,3.. etc in order to get to a specific tab directly.
I have gotten a similiar problem solved for terminal.app with the help of this application/script
https://github.com/ciaran/terminaltabswitching
It's usable on ML, you only need to increase the MaxBundleVersion in info.plist.
It's used together with easySIMBL.
So I recently started using tabs in Xcode and this was the first thing i tried to find, as I prefer selecting tabs specifically.
Any idéas/solution? Thanks.

App Shortcut without pinning to Start Screen in Windows 8 using C++

Our company has an installer written in C++ that creates program shortcuts using IShellLink as described in:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb776891%28v=vs.85%29.aspx
On Windows 8 all shortcuts created in the Start Menu will also show as titles on the Start Screen. What we're looking to do is programmically control which icons are shown on the Start Screen. In the following article it describes the option "System.AppUserModel.StartPinOption" as:
To create add an app shortcut without pinning it to the Start screen
view, you can set the following property on the shortcut:
System.AppUserModel.StartPinOption = 1. The symbolic name for 1 is
APPUSERMODEL_STARTPINOPTION_NOPINONINSTALL.
http://msdn.microsoft.com/en-us/library/windows/desktop/jj673981%28v=vs.85%29.aspx
This appears to be possible using the Windows Installer, however I haven't found a way to accomplish the same functionality programmatically in C++ given our context.
If anyone has any information about this, or an example of some sort, it would be much appreciated.
One thing I found was that "..NewInstall" literally means that. User customizations to the tiles seem to be retained even after you delete/update the .lnk files. This is probably a good thing as updates won't reset the user's environment, but it does mean that I needed to use fresh installs of Windows 8 during testing. I used a VM box to minimize the pain. At least I don't know how to delete the properties once set from within the environment.

Eclipse CDT: How can I change background color of tooltip in editor?

I'm using eclipse for coding C++ and Java. When declaration or definition is shown, background is black. It happens only in C++ srouce file. I dont have this problem while editing Java source files.
I have installed Eclipse Color Theme. I'm not able to find where i can set background color of this window. I have been searching in General/Appearance/Colors and Fonts and C/C++/Editor/Syntax Coloring without result.
Switching to a clean workspace might help but I found the curprit if you want to manually edit it. Look in:
[my workspace]/org.eclipse.core.runtime/.settings/org.eclipse.cdt.ui.prefs
for
sourceHoverBackgroundColor.SystemDefault=false
and make it "true". Restart Eclipse. Of course this assumes that your system default background colour is not black.
I had this problem because I installed this plugin. I tried out the themes but when I decided on the original and swapped back to it the tool tips were broken in this fashion. Unfortunately the only way I managed to fix it was by "reinstalling" eclipse.

help with type of window dialog resource needed

I am writing a windows program (no mfc) and need to output a status line to the operator every few seconds or so. I tried using rich text boxes but after so many hours it seems to hang up. Does anybody have an suggestions on what I can use instead?
People mentioned that my buffers might have been exhausted. I thought I had planned for that. After I had about 1000 lines displayed I would take the first 500 and remove them using the select and cut options in rich text boxes. I still ran into the same problem.
This question appears relevant, and this one too. But they don't give any concrete recommendations for an alternative to rich text boxes.
You might try the Scintilla control (scintilla.org) which does not appear to have any hard limitations on text size. It has a permissive license. It is used by many text editors such as Notepad++, Notepad2, Code::Blocks, FlashDevelop. I haven't tried it personally but there from the documentation it looks easy to use it in a Windows API application. Of course, it might be overkill for your purposes.
If you keep appending to the text in the control every few seconds for hours then you are probably running into some memory constraint on the control or the process. I think you would have this problem with any control you choose given update frequence and how long you're running the program.
Have you considered implementing a simple circular buffer for the content of the text box? Say only keep the last hour's messages. You could maintain a separate log file for history if the operator needed to go back in time for hours.
I ended up writing my own control to do this, essentially duplicating the Output window in Visual Studio. It was a success, but it ended up being much more code than I thought it would be when I started - I insisted on features such as auto-scrolling when the cursor was on the last line, select/copy, bold text, etc. It was backed by a std::deque so I could limit the number of lines stored for the window.
Unfortunately the code belongs to a former employer so I can't share it here.

Window like control in SketchFlow?

I've been playing around with SketchFlow from Microsoft and one thing that bothers me is that I cannot seem to find a window looking like sketch.
I would like it to have title bar and 3 "buttons" like all normal windows do (minimize, maximize, close buttons).
In Balsamiq Mockups this is very easy, however I don't see any kind of window-like sketches in SketchFlow.
I'm trying to mockup future desktop application.
You are correct that there isn't one built in. In SketchFlow you can easily make "component" screens that can be used multiple times. To create what you are looking for you could combine a sketch rectangle, with a couple of buttons and a textbox. You can select all of this content, right click it and make it into a component screen.
The MockupsLibrary also provides the mockups you are looking for. Once you've installed it, it'll appear in your assets as "ButtonWithIconMockup". You can select the "WindowMinimize", "WindowMaximize", and "WindowClose" for your IconImage attribute to get the desired result.
With Expression Blend 4, you can install the Mockup Controls by following the instructions at How to add mockup controls to your Expression Blend library. In the new Assets | Mockups category you will see a WindowMockup item that does exactly what you wanted.
To play around with the Mockup Controls, try the MockupDemonstration sample from the Help Welcome screen.
Unfortunately, there doesn't seem to be a builtin MenuStrip yet (although you can laboriously build one yourself from the non-sketchy SimpleMenu and SimpleMenuItem controls)? Also there doesn't seem to be any support for indicating keyboard accelerators (prefixing the desired letter with & doesn't work).
In general, it seems like Sketchflow really isn't designed to be used to prototype standard desktop applications?